~/talk

Introducing Django Ninja — Fast Django REST Framework

Talkat PiterPy 2020 · 2020-08-03..08-06· [python, web-platform]
links:none on file
slides:none on file

Claims a Django-focused API layer uses Python type hints + Pydantic to auto-generate OpenAPI, validate input/output, and keep deep Django ORM integration while supporting async views via adapters. Prototype is 500 lines proof of concept, measures show parsing/validation is ~5% faster than Flask with Marshmallow and almost 2x faster than Django REST Framework. Demo builds models, Pydantic-like request/response schemas, creates and lists tasks, shows nested owner objects, and uses sync_to_async plus select_related to run DB work under ASGI (Uvicorn/Daphne).

AI-written summary · about

  1. 0:00Introduction
  2. 3:21Performance benefits
  3. 4:31Django Ninja setup
  4. 6:37Parameter validation
  5. 7:44Database integration
  6. 10:57Response schemas
  7. 12:23List endpoints
  8. 13:27Nested objects
  9. 15:11Async views demo
  10. 17:15Production notes
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.