3 ms·
Django REST framework (1) gives you the best of django + a RESTful API really, and is just another `pip install` and a few lines added to settings file. You st
by dfsegoat 8y ago
Django REST framework (1) gives you the best of django + a RESTful API really, and is just another `pip install` and a few lines added to settings file.
You still have some of the same performance issues as with any ORM - but it makes setting up a Django based RESTful API fairly trivial.
Some things I like about DRF:
- viewsets which allow RESTful read + CRUD ops on an existing django model.
- easy to set up different serializers for a model view: flat, nested with child relations etc.
- auto generated API docs in the browsable format of your choosing.
1 - https://www.django-rest-framework.org/ https://www.django-rest-framework.org/