Django #
Rule of thumb for views #
- API will have to do a lot of basic CRUD operations (straight read,update,delete of your models), go for the ViewSets so you won’t have to write all the code for the basic stuff.(Recommended)
- If you require more custom work, go for either Generic Views or APIViews.
- Don’t use functional route at all anymore. The class based views provide too many benefits!
- Write logcs/operations in serializers rather than views.