Understanding the crux of Django migrations
Migration is one of the most dreaded words for an engineer, be it migrating an old framework to a new framework, migrating data from an old system to a newer system, or in our case, migrating database schema-related changes. In fact, in a lot of early-stage startups, developers use NoSQL primarily because the business is in such a nascent stage; developers don’t want to make database migrations every other day as the business requirements have to adapt to the new database schema requirements.
However, Django solves the database schema migration issue out of the box. In this section, we’ll learn how Django handles migration under the hood and how we can work with Django migrations like a pro to solve any challenge thrown at us.
Demystifying migration management commands
Whenever we ask any developer how to perform migration in Django, the most common answer we get is that we can perform migrations by running the following...