📖
Theory
Understand the concept step by step
Migrations are Django's way of propagating changes made to models into the database schema.
makemigrations creates migration files based on model changes.
migrate applies those migrations to the database.
💻
Example
See how the concept works in Django
Django / Python
python manage.py makemigrations
python manage.py migrate📤
Output
Understand what the code produces
Migration files are created and the database schema is updated.
📝
Practice
Test your understanding
Create a model, generate migrations and apply them.
❓
MCQs
Check your knowledge
What is the main topic covered in Django Migrations?
A.makemigrations
B.make-database
C.create-schema
D.django-db
💼
Interview Questions
Prepare for Django interviews
1
Interview Question
What are Django migrations?
2
Interview Question
What does makemigrations do?
3
Interview Question
What does migrate do?