~/talk

Combining Django ORM & FastAPI in a Single App

Talkat PyCon US 2024 · 2024-05-15..05-23· [python, web-platform]
slides:none on file

Claims that Django ORM with FastAPI runs in production for a data‑visualization service and shows the exact wiring: modify settings.py, add wsgi/uvicorn entry, call django.setup in main.py, wrap DB calls with a synctoasync decorator, Dockerfile and pytest fixtures for isolated tests. It works but surfaces frequent sync/async exceptions, missing async features like transactions, and tooling mismatches. Recommends alternatives: go full Django or FastAPI+SQLAlchemy or try Django Ninja; notes Django migrations and admin remain a practical win.

AI-written summary · about

  1. 0:00Combining Django ORM & FastAPI
  2. 3:24Django ORM with FastAPI drawbacks
  3. 7:56FastAPI benefits over Django
  4. 10:51Sync/async code challenges
  5. 13:43Setup Django ORM with FastAPI
  6. 15:10Endpoints with Django ORM
  7. 16:14Testing Django ORM & FastAPI
  8. 18:40Project structure tips
  9. 19:47Combine Django ORM & FastAPI?
  10. 21:06Q&A
~/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.