Django REST Framework: Taking your API to the next level
summary
An API example creates about 15,000 tickets to stress performance then applies dynamic serializers to avoid duplicated nested representations, uses select_related and prefetch_related to cut DB queries and drops a slow 2+ minute response to ~124 ms, adds django-filter for URL filtering, enables caching with django-cacheops with Redis and cache_page decorators, and enforces model and field rules via dry-permissions while adding an Excel renderer mixin — the changes are built and demonstrably speed and simplify the API.
AI-written summary · about
chapters (7)
- 0:00Start
- 6:08Dynamic Serializers
- 8:17Prefetch
- 12:25django-url-filter
- 15:42django-cacheops
- 18:01DRYPermissions
- 22:54XLSXRenderer
related talks
33mDjango REST Framework: Moving Past the Tutorial to Production
23mDjango REST API - So easy you can learn it in 25 minutes
26mWhat it's really like building RESTful APIs with Django
27mWhat You Should Know About Django REST Framework
48mAuto-generating an API using PostgreSQL, Django, and Django REST Framework
37mPerformant Django
01h 06mEffective Django
27mThe Beauty of ViewSets in Django Rest Framework
