🌐 Building Your First API with Django and Django Rest Framework
summary
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
chapters (19)
- 0:00Introduction
- 2:14Presenters and AFR Python background
- 5:45API overview
- 8:19Django models & DRF
- 15:13Setting up the project and repository access
- 22:45Virtual environment
- 33:38Troubleshooting virtual environment activation
- 46:24Fixing repo setup
- 56:12Django project structure
- 1:07:43Reset project
- 1:16:05Start API with models
- 1:31:20Create models & settings
- 1:42:30Fixing project configuration and running the server
- 1:50:51First endpoint (artist)
- 2:09:24Database migrations
- 2:16:18Database backends
- 2:24:14Checkpoint & next steps
- 2:30:12Album API & viewsets
- 2:44:17Q&A
related talks
26mDjango, REST and OpenAPI - a gentle introduction
25mWrite an API for Almost Anything (or The Amazing Power and Flexibility of Django Rest Framework)
21mBuilding Powerful APIs with Django, Django Rest Framework, and OpenAPI
27mBuilding a REST API with Django & Django REST Framework
46mIntroducing Django REST framework
25mThe evolution of a RESTful Django backend
46mCreating Solid APIs
26mThe evolution of a Django Website into a radio automation back-end
