Rajan Lagah
Rajan Lagah

Reputation: 2528

manage.py makemigrations works but manage.py migrate did not

enter image description here

how to solve the error.I first created the model with only one class and the makemigrations and migrate work perfect. but now i add another class in model but now migrate did not work the output is in pic. django version is 1.11 and i also register it in admin.py

Upvotes: 0

Views: 3034

Answers (1)

Exprator
Exprator

Reputation: 27513

python manage.py makemigrations ----> for all app

python manage.py makemigrations app_name ----> for a specific app

python manage.py migrate ----> for all the apps,

N.B. = migrate doesnt take any app name , you need to run only python manage.py migrate

Upvotes: 1

Related Questions