1👍
You need to run the migrate
command first to scaffold the database schema. Then, you can run makemigrations
for each app. Check the Django tutorial for more on this.
1👍
Make sure you update your models.py file to actually import the models. For example in models.py you’d have from service_bus.models.audience import *
. The manage script goes over that file, imports all the models in audience.py and detects changes in there. If you did not add your new models to models.py then the manage script won’t know about the new models in you models files.
Source:stackexchange.com