10 Must-have Tips of Django REST framework to Increase your Coding Efficiency
1.Set current user field inserializer.py
2. Composite Index and Composite Unique key in model.py
3. Pass extra context variables to the serializer.py from view.py
4. Validate JSON input data in serializer.py
5. Obtain querySet of all rows, with specific fields
6. Use Signal to decouple business logics
7. Use request.user in Middleware
8. Pagination settings
9. Custom view level permission and object-level permission
10. The best Django REST reference resource: http://www.cdrf.co/
لینک توضیحات کامل ده تا نکته بالا (من DRF بلد نیستم. اگه نکته اشتباهی گفته لطفا بگید):
https://medium.com/analytics-vidhya/10-must-have-tips-of-django-rest-framework-to-increase-your-coding-efficiency-87ebea0e0099