Which Django command is used to create a new database migration?
Correct answer
B. python manage.py makemigrations
13 views
B. python manage.py makemigrations
13 views
python manage.py makemigrations creates new migration files from the changes you made to your models.
It does not touch the database; migrate is the command that applies the migrations. Remember the order: makemigrations, then migrate.
Practise more Computer Science MCQs with answers and explanations on MCQsExam.com.
Not sure why the answer is B? Ask here and get an explanation.