Django

Updated 1 min read index source
On this page4
  1. ORM and queries
  2. Request lifecycle
  3. APIs and async
  4. External resources

Django

Baseline: Django 6.1 (Aug 2026); 5.2 is the current LTS. See Stack baseline — 2026-2027.

ORM and queries

# File Covers
01 Django F Object F() — database-side field references, race-free updates
02 Django Q Object Q() — complex boolean lookups
03 Django Bulk Operations Guide bulk_create, bulk_update, and what they skip
06 Django Models vs QuerySets: Understanding the Difference managers, querysets, laziness
11 N+1 in Django: select_related, prefetch_related, fetch modes the N+1 fix, and which one to use
09 CharField vs TextField in Django field choice and DB mapping
04 Django Proxy Models Guide changing behaviour without changing the table

Deeper ORM material: Django ORM — comprehensive guide, migrations, relationships.

Request lifecycle

# File Covers
07 Django middleware the middleware chain, ordering, writing your own
08 Django signals signals, and why they’re often the wrong tool
10 settings.py settings layout, environments, secrets

APIs and async

# File Covers
05 Django serializers vs DRF serializers Django’s own serializers (fixtures, natural keys) vs DRF’s
12 Django vs Django REST Framework what DRF adds and costs; DRF, Django Ninja or FastAPI
13 Async Django, Channels, and Async ORM async views, ASGI, Channels
14 Service layer vs fat models in Django where business logic goes, and what bypasses it

Full DRF coverage: DRF — 16 files on serializers, validation, viewsets, permissions, auth, throttling, pagination, filtering, versioning, OpenAPI.

External resources

Contents 33

Notes