Understanding migrations in Django

Before we make migrations in our application, we must understand what they mean in Django and why they’re important. Previously, we created two models, House and Checker. Each model maps to a database table, and each model’s attribute represents a database field. Whenever we change these parameters, Django will implement the changes by migrations. Django helps us automatically make these changes in our database without writing any structured query language to populate or update these tables and fields.

Get hands-on with 1200+ tech skills courses.