#DRF

6 posts

Django DRF #6: Testing and Deployment — Docker, gunicorn, nginx
13 min read

Django DRF #6: Testing and Deployment — Docker, gunicorn, nginx

Integration tests with APITestCase / APIClient / pytest-django / factory_boy, plus production deployment via Docker multi-stage + gunicorn + nginx + docker-compose.

Django DRF #5: OpenAPI Docs — drf-spectacular
9 min read

Django DRF #5: OpenAPI Docs — drf-spectacular

Auto-generate the OpenAPI 3.x schema / Swagger UI / ReDoc for a DRF API with drf-spectacular, and precisely specify responses, errors, and auth via decorators.

Django DRF #4: Async Work with Celery
10 min read

Django DRF #4: Async Work with Celery

The standard for separating heavy work / external IO / scheduling from the response flow — Celery + Redis setup, signal integration, retry, periodic tasks, and monitoring.

Django DRF #3: Filtering / Ordering / Pagination
8 min read

Django DRF #3: Filtering / Ordering / Pagination

Search filters with django-filter, OrderingFilter/SearchFilter, and a comparison of where PageNumber/LimitOffset/Cursor pagination fit best.

Django DRF #2: Authentication/Permissions — Token, JWT, custom permission
8 min read

Django DRF #2: Authentication/Permissions — Token, JWT, custom permission

DRF authentication backends (Session/Token/JWT), permission classes, and object-level custom permissions like IsOwner — all in one place.

Django DRF #1: Getting Started — Serializer, ViewSet, Router
10 min read

Django DRF #1: Getting Started — Serializer, ViewSet, Router

The standard for laying a REST API on top of Django — DRF Serializer/ViewSet/Router fundamentals in one place.