Reputation: 2528
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
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