Django Backend
Build Django web apps and REST APIs with Django REST Framework. Generates models with proper indexes, optimizes ORM queries with select_related/prefetch_related, builds DRF serializers and viewsets, and wires up JWT authentication.
This skill helps you build production Django backends. It scaffolds models with sensible indexes and constraints, eliminates N+1 queries using select_related and prefetch_related, builds DRF serializers, viewsets, and routers, configures JWT auth and permissions, and structures settings for multiple environments.
When to use
Use when building Django web applications or REST APIs with Django REST Framework, optimizing slow ORM queries, designing serializers and viewsets, or configuring authentication and settings.
Examples
DRF API with JWT auth
Build a REST API endpoint with authentication
Create a Django REST Framework API for a blog with Post and Comment models, serializers, viewsets, pagination, and JWT authentication
Fix N+1 queries
Optimize slow ORM queries
Profile this Django view and rewrite the queryset using select_related and prefetch_related to eliminate N+1 queries