Django REST Framework: Moving Past the Tutorial to Production
summary
Practical checklist for shipping a DRF API: how to embed related fields and three concrete options for writable nested data with tradeoffs and examples; when to use different serializers for list/detail and per-user serializers plus matching queryset choices; when to use select_related vs prefetch_related and how tests count queries to catch N+1s; using rest-framework-filters, django-rest-swagger, make docs and a cookiecutter template; django-simple-history for auditing and viewset actions for model‑scoped endpoints.
AI-written summary · about
chapters (7)
- 0:00Start
- 3:20Recap: Serializers
- 12:44Creating a Separate Write-only Field
- 15:01Creating a Separate Relationship Field
- 23:02The detail argument
- 27:15Documentation Options
- 30:03Bonus: useful libraries
related talks
27mWhat You Should Know About Django REST Framework
27mDjango REST Framework: Taking your API to the next level
38mDjango Rest Framework + Redux
23mDjango REST API - So easy you can learn it in 25 minutes
01h 06mEffective Django
26mWhat it's really like building RESTful APIs with Django
41mProduction Django: Building a Highly Scalable, Secure Django Site
27mThe Beauty of ViewSets in Django Rest Framework
