~/talk

🌐 Building Your First API with Django and Django Rest Framework

Talkat PyCon US 2024 · 2024-05-15..05-23· [django]
name:Felipe
links:none on file
links:none on file
slides:none on file

Tutorial walks through building a working music API: Django 4 and DRF 3.13 in a virtualenv, models for Artist/Album/Song, migrations to create sqlite3 tables, serializers (HyperlinkedModelSerializer for Artist), routers that register viewsets, and a browsable CRUD interface that actually returns JSON and accepts POST/PUT/DELETE. Debugging notes include Windows activation pitfalls, dependency pins for Python 3.9, and the practical contrast of ModelViewSet vs ViewSet so the code ends up runnable rather than just conceptual.

AI-written summary · about

  1. 0:00Introduction
  2. 2:14Presenters and AFR Python background
  3. 5:45API overview
  4. 8:19Django models & DRF
  5. 15:13Setting up the project and repository access
  6. 22:45Virtual environment
  7. 33:38Troubleshooting virtual environment activation
  8. 46:24Fixing repo setup
  9. 56:12Django project structure
  10. 1:07:43Reset project
  11. 1:16:05Start API with models
  12. 1:31:20Create models & settings
  13. 1:42:30Fixing project configuration and running the server
  14. 1:50:51First endpoint (artist)
  15. 2:09:24Database migrations
  16. 2:16:18Database backends
  17. 2:24:14Checkpoint & next steps
  18. 2:30:12Album API & viewsets
  19. 2:44:17Q&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.