Home›Learn›Django›Django Migrations
Django Master CourseBeginner Friendly

Django Migrations

Learn how Django migrations track and apply database schema changes.

📘 Chapter 12 / 34⏱️ 8–10 Min Read🎯 Beginner Friendly
Course Progress35%

Course Progress

35%

12 / 34 chapters

📖

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?