Django Runtime Guide
Runtime patterns specific to Django — async ORM, ASGI, and production quality standards. For generic Python patterns see Module Design Guide, for Django app structure see App Design Guide.
WebSockets: use django-realtime, django-cfg’s own WebSocket layer (typed topics, publish(), Django auth, Redis Streams, served by the same uvicorn process). django-cfg does not use Django Channels; the Channels page below is background for projects that already run Channels.
Django async ORM with a-prefixed methods, async for iteration, sync_to_async bridges, and common pitfalls
Realtime (WebSocket)The django-cfg WebSocket path: topics, publish(), auth, replay, deployment
Channels & ASGIBackground only (django-cfg does not use Channels): ASGI setup and AsyncWebsocketConsumer for existing Channels projects
Django Testingpytest.mark.django_db for async, AsyncClient, and sync_to_async test patterns (realtime sockets: WebSocketDriver)
Quality GatesFoundation, Production, and Enterprise quality levels with Django-specific checks and Prometheus monitoring
Route DebugDiagnose 404 errors from misconfigured DRF routers — logs partial URL pattern matches in DEBUG mode