~/talk

A Pony On The Move: How Migrations Work In Django 🐎

Talkat DjangoCon Europe 2020 Β· 2020-09-18..09-19Β· [django]
slides:none on file

Explains how Django migrations actually work by naming the concrete components: MigrationLoader, MigrationRecorder and MigrationExecutor, and showing how the migration graph and dependency resolution pick the next file to run. Demonstrates the difference between ProjectState vs database (operations mutate project state first then run SQL), inspects real operation classes like CreateModel, RemoveConstraint and RunPython, and shows when squashing or fake-applies break. Includes how to read and test a migration file and what fails at apply vs unapply.

AI-written summary Β· about

  1. 0:00Introduction to Django migrations
  2. 3:37How migrations work in Django
  3. 6:28Migration operations explained
  4. 11:10Building migration dependencies
  5. 15:44Handling model changes with migrations
  6. 19:57Complexity in migration generation
  7. 23:28Summary and Q&A
~/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.