3 ms·
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
by lumpypua 12y ago
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#function-based-views 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.