Django – Running makemigration does not detect changes in models.py

To fix this issue, refer to the app name when running the code

 

python manage.py makemigrations name_of_app

The correct app name can be found from the app.py file

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s