There are other API frameworks out there for Django. You need to assess the options available and decide for yourself. That said, here are some common reasons for tastypie.
To develop API with Django, we have many options. The main options are Tastypie and Django Rest Framework(DRF).
What makes a decent API Framework?
These features:
Proper API frameworks also need:
Really good test coverage of their code
Decent performance
Documentation
An active community to advance and support the framework
If you take these factors, at this time there are only two API frameworks worth using (depends in user views), django-tastypie and django-rest-framework.
Which one is better? django-tastypie or django-rest-framework?
I say they are equal. You simply can't go wrong with either one. The authors and communities behind both of them are active, the code is solid and tested. And here are my specific thoughts about both of them:
Tastypie:
Advantages:
Disadvantages:
DRF:
Advantages:
Follow idiomatic django. (If you know django inside out, and very comfortable with CBV, Forms etc without any doubt go for it)
Provides out of the box REST functionality using ModelViewSets. At the same time, provides greater control for customization using CustomSerializer, APIView, GenericViews etc.
Better authentication.
Easier to write custom permission classes.
Work very well and importantly very easy to make it work with 3rd party libraries and OAuth.
DJANGO-REST-AUTH is worth mentioning LIBRARY for Auth/SocialAuthentication/Registration.
Disadvantages: