~/talk

Prototypes Sharing and Services Full Django in a Single File

Talkat PyCon UK 2025 · on Sunday, 2025-09-21· at 15:00· Main stage· [django, developer-experience]
links:none on file
slides:none on file

Demonstrates how to run full Django in a single file with working views, models, admin, migrations, and a Django Ninja API by wrapping Django startup and app registration into a Nanojango tool that monkey‑patches Django’s model metaclass and app registry to avoid import loops. Shows run and convert commands (convert auto‑refactors the single file into a standard project), supports async views, embedded templates, integrations (Django Style, Nano Pages, Django Distill), and a Pyodide‑based playground runs in the browser. A colleague’s Nanojango API is about 30% shorter than the FastAPI original.

AI-written summary · about

  1. 0:00Introduction
  2. 2:29Django in a single file
  3. 3:33Reimplementing Flask with Nanojango
  4. 3:55Adding API support like FastAPI
  5. 4:39Django models in a single file
  6. 5:43Python tricks in Nanojango
  7. 9:14Running Nanojango scripts
  8. 9:57Registering models without structure
  9. 11:40Fixing Django’s metaclass
  10. 13:25Monkey patching Django’s core
  11. 15:59Scaling to full Django
  12. 16:41Converting to a full project
  13. 17:44Integrating with other packages
  14. 19:51Practical uses
  15. 20:54Real-world examples
  16. 22:40Nanojango playground
  17. 24:05Conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.