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