Skip to content
Justice Tech School

Migrations

makemigrations writes migration files from model changes and migrate applies them to the database. Commit migration files to git.

Example
python manage.py makemigrations
python manage.py migrate
python manage.py showmigrations
python manage.py sqlmigrate blog 0001

Exercise

Apply migrations.

python manage.py 

Quiz Test

Which command creates migration files?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.