9 ms·
Django REST framework 3
- gtaylor 12y agoWish this wouldn't have been yanked off the front page!
- dang 12y ago"Yanked" suggests human intervention. That's not what happened. It set off the voting ring detector. Edit: we turned the penalty off.
- andybak 12y agoI wonder in this case whether it was a false positive. Lots of people want to support a project like this and it's fairly natural to email people and tell them that the link has been posted. The only reason I don't do that any more is that someone told me about the voting ring detector.
- TylerE 12y agoIsn't that basically vote ringing?
- pbreit 12y agoCommunicating about an appealing topic shouldn't be so detrimental.
- dang 12y agoEvery voting ring considers its topic singularly appealing. This is a hard problem and there are tradeoffs.
- TylerE 12y agoWhat about allowing users (Maybe only those with more than x000 karma) to downvote links?
- dang 12y agoI doubt that we'll introduce story downvoting; at least not without a good reason. Users can already flag stories that shouldn't be on the front page.
- antihero 12y agoIt's a Kickstarter about a Django framework that a large amount of the community have a (vested) interest in. So of course this group of people are going to upvote it, just like node stuff gets upvoted by node people, Ruby by Ruby people, etc.
- gtaylor 12y agoI wasn't making a statement about human intervention at all. One minute it was doing well on the front page, the next minute it was gone. I noticed that something disappeared/yanked/punted/hid it. I guess this sort of protection can be helpful, but I hope that it doesn't keep other high quality but less known content out. DRF is popular enough to overcome this false positive, but I wonder if some other lesser-known (but interesting) stuff would be.
- dang 12y agoPoint taken about "yanked". I share your hope. High-quality, less-known content is exactly what we want more of.
- falcolas 12y agoHow does this compare to, say, Tastypie?
- mamcx 12y agoIn my personal experience django rest is far easier & clear how do things. Also, the REST admin is nice. I think is the closest in python to the (IMHO) best API-framework thing that I have used (http://www.remobjects.com http://www.remobjects.com).
- porker 12y ago> to the (IMHO) best API-framework thing that I have used (http://www.remobjects.com http://www.remobjects.com). I've had a look on their site and can see a number of different products; which is the API framework as it's not obvious to me?
- mamcx 12y agoRemObjects SDK. On top of it is build DataAbstract
- deleted 12y ago[deleted]
- pjam 12y agoI used both for almost a year and while I really enjoyed working with tastypie, I found Django Rest Framework to be even better. - I think Rest Framework's documentation is way better than tastypie's. - I found tastypie's source code to be overly complicated, while DRF was a little bit better - The browsable API is really nice - I love DRF's API, such a Class Based Views, it felt like the continuation of Django, instead of a complete new thing.
- kyllo 12y agoIt also (correctly IMO) uses headers to specify format rather than the client needing to append stuff like ?format=json to the URL.
- junkmob 12y agoI've never understood why people like this framework so much. It's not that flexible. If you want to customize your API in specific ways ( ordering, nested resources, validation ), then you will undoubtedly just write your own CBV(s). After writing your own CBV(s) for awhile, you will either love that solution or hate it and look for something more flexible and out-of-the-box. For many of the things that Django REST framework version 3 is attempting to solve there is already an awesome alternative to it and TastyPie called Conduit. I highly recommend people give it a shot, since it's pretty modular. It also presents a different alternative to Function and Class-Based views: http://django-conduit.readthedocs.org/en/latest/ http://django-conduit.readthedocs.org/en/latest/
- Buetol 12y agoI also recommend restless(from the author of Tastypie): https://github.com/toastdriven/restless https://github.com/toastdriven/restless Really dead-simple to use and just plain fun.
- scrollaway 12y agoLooks interesting, might port one of my tastypie projects to it. However I'm very concerned about the author's inactivity. Tastypie has gone unmaintained several times for a long time. It looks like restless is headed that way as well. Concerning.
- findjashua 12y agoFlask-Restless has quickly become my favorite REST framework: http://flask-restless.readthedocs.org/en/latest/ http://flask-restless.readthedocs.org/en/latest/
- alphonse23 12y agoI calculated his basic salary, if he's asking for £4,378 for two days worth of work per week for 6 months, that means he make £xx,xxx per 6 months... Man, I wish he was making more period. This guy no doubt deserves more!
- vially 12y agoActually for the base goal of £4,000 he's guaranteeing two days a week for 2 months. The £12,000 stretch goal has to be reached for two days a week for 6 months. But still, he definitely deserves more.
- SEJeff 12y agoI'll be donating to this for sure when I get home. This software is hands down the cleanest, best structured, and nicest to use "framework" to build REST-ful services in python. I've used piston, tastypie, and DRF. It is the best of all 3 hands down.
- pizza_boy 12y agoAbsolutely agree. I just pledged. Thanks Tom.
- HorizonXP 12y agoI'm going to as well. I wish there were still some £250 level rewards, as I'd love to donate at that level. £1000 is a little rich for me this month, maybe next! Might have to go in at the £100 level.
- tomchristie 12y agoHiya, I've just removed the limits on the higher levels of backing. See the 'Day 1 - Funded!' update here... https://www.kickstarter.com/projects/tomchristie/django-rest-framework-3/posts/917891 https://www.kickstarter.com/projects/tomchristie/django-rest... - There's been so much support that it just seems unnecessarily restrictive.
- HorizonXP 12y agoAwesome. Just backed it, and I see you've blown past the stretch goals. Excited to see where you take this!
- andrewgodwin 12y ago"Best structured" is definitely true - part of the reason we can use it to power all the new Eventbrite APIs is because we can easily remove one or two pieces and swap in our own without breaking the rest. Makes my life a lot easier!
- akoumjian 12y agoHey dude. If you get a chance, you should check out my project: https://github.com/akoumjian/django-conduit https://github.com/akoumjian/django-conduit I can't guarantee it, but you make like the approach.
- parham 12y agoDjango isn't built to be the main backend for an API, I've previously used Tastypie and it's just not flexible enough, you should really consider using Flask if you're planning to go API first.
- mrfusion 12y agoWhy do you think flask is better?
- parham 12y agoWell Flask is just the "glue" the real thing I like is its flexibility, which allows you to use tools that fit your needs, which for handling data SQLAlchemy blows Django's ORM out of the water. Don't get me wrong I love Django and I do use it a lot for websites but for handling data... it's restrictive to say the least.
- mahmoudimus 12y agoI am a die hard flask fan. I would highly recommend you look @ Pyramid. Much better for APIs than Flask, especially if it's core to your business.
- lumpypua 12y agoWhy do you think pyramid is better?
- mahmoudimus 12y agoFlask's import time side-effects and has global objects everywhere. It's great for a quick hackathon and a great eco-system, though arguably you can just use Pyramid for that. In my experience, growing bigger with Pyramid has been much easier than it has been w/ Flask. We found ourselves writing most of Pyramid using Werkzeug when it would've made sense to start off with Pyramid in the first place. Pyramid's design for extensibility and design decisions are solid and really make a difference if you're building a real app vs a toy app.
- msane 12y agoI'll put $50 into this if a feature of version 3 is supporting an optional serializer / renderer that follows the "JSON API" spec (http://jsonapi.org/ http://jsonapi.org/), to support output similar to rails' ActiveModelSerializers. Anyone working with EmberJS would find this desirable because that is the default format of API it expects.
- gomesnayagam 12y agowe use cyclone based eco-system, it is completely at your hand, we love that extensibility.
- rectangletangle 12y agoAs someone who is almost done with a fairly large personal project that's built on top of the REST framework (~8,000 lines of Python). I gotta say it's an awesome library. Whenever I find bugs, someone on GitHub is always ahead of me. I've been using it with Python 3, and so far I've had no 3 specific issues or bugs. I especially like the way DRF handles permissions and throttling. It's quick and easy to switch out the permissions on any given view. Features like the built-in throttle classes, and search filters are very convenient. The thorough documentation, and browse-able API are also really nice. My only real suggestion would be to break up some of the larger code blocks, and add more hooks. This would make the framework even more flexible than it already is.