Reputation: 599
There are three migration commands in Django:
python manage.py makemigrations
python manage.py migrate
python manage.py syncdb
In what order do these commands should be executed in terms of workflow of a basic project?
I am using Version: 1.8
Upvotes: 0
Views: 89
Reputation: 53679
syncdb
is deprecated and does the same as migrate
.
Whenever you make a change to your models, and when you first create them, each time you'd want to first run makemigrations
to create the migration files, then migrate
to apply them to your database.
Upvotes: 3