It is not true that once you have created your database structure, it won't change in the future. As development happens iteratively, you can get updates on the business requirements in the development process and you will need to perform database schema changes along the way. With the Django migrations, you don't need to change the database tables and fields manually, as most of it is done automatically using the command-line interface.
To create the database migrations, take a look at the following steps:
When you create models in your new
demo_app
app, you need to create an initial migration that will create the database tables for your app. This can be done using the following command:(myproject_env)$ python manage.py makemigrations demo_app
The first time that you want to create all the tables for your project, run the following command:
(myproject_env)$ python manage.py migrate
It executes...