News for hackers. Stuff that matters.
Re:Django REST framework 3 by falcolas on Thursday July 17, 2014 @03:44PM (#8049753)
How does this compare to, say, Tastypie?
Re:Django REST framework 3 by lumpypua on Thursday July 17, 2014 @04:23PM (#8049979)
Having used both extensively, I vastly prefer DRF.

Tastypie is nice if you want to bang out a rest interface directly to your models quickly.

I prefer DRF for pretty much anything else. Two reasons:

1. There's more tools in the toolbox for simple but arbitrary problems. Need a one-off endpoint that takes a POST and returns json and is throttled? The @api_view decorator and company make it easy: http://www.django-rest-framework.org/api-guide/views#functio...

2. DRF is a lot more easily extensible, and that extensibility is well documented. Tastypie's documentation is pretty good, but DRF's is great. I often found myself digging around in tastypie's source figuring how exactly to punch holes and make it do what I want.

Re:Django REST framework 3 by pjam on Thursday July 17, 2014 @04:19PM (#8049946)
I 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.

Re:Django REST framework 3 by kyllo on Thursday July 17, 2014 @05:07PM (#8050182)
It also (correctly IMO) uses headers to specify format rather than the client needing to append stuff like ?format=json to the URL.
Re:Django REST framework 3 by niels on Friday July 18, 2014 @01:21AM (#8051793)
Django Tastypie does that as well.
Re:Django REST framework 3 by mamcx on Thursday July 17, 2014 @03:47PM (#8049770)
In 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).

Re:Django REST framework 3 by porker on Thursday July 17, 2014 @04:22PM (#8049970)
> to the (IMHO) best API-framework thing that I have used (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?

Re:Django REST framework 3 by mamcx on Thursday July 17, 2014 @06:32PM (#8050626)
RemObjects SDK. On top of it is build DataAbstract
Re:Django REST framework 3 by eli on Friday July 18, 2014 @10:25AM (#8053166)
Tastypie is great if the way it works out of the box is exactly how you want your API to work. (And for some people, that's probably true.) If not, it's kind of a pain to hack in customizations.