Using Django as a Micro-Framework: Hacking on the HTTP handlers..
summary
Demonstrates the actual HTTP stack: WSGI/ASGI entry points, get_wsgi_application calling django.setup, and a WSGI handler ~20 lines that delegates to a base handler ~150 lines which resolves URL args and runs the middleware onion (load_middleware builds a nested chain). Shows single-file usage via settings.configure and a micro WSGI app, compares Express/Flask/Starlette examples, and proves the approach works with Gunicorn/Uvicorn and standard Django middleware hooks.
AI-written summary · about
chapters (8)
- 0:00Introduction to Django
- 2:42Microframework examples
- 5:56WSGI and Django setup
- 8:25Inside the Django handler
- 11:28Understanding middleware
- 18:09The get response method
- 21:11Django as a microframework
- 22:50Summary and conclusion
related talks
18mFrom WSGI to ASGI - Django 3.0
23mµDjango, an Asynchronous Microservices Technique with Practical Examples
26mImplementing shared functionality using Middleware
31mHey, Python-Web-Community! What's going on?
24mA Brief History of Python Web Frameworks
33mSecrets of a WSGI master.
01h 06mEffective Django
26mInside web framework: intro to the ASGI spec, middleware and apps
