40
I made changes to my models but migrations are not being applied. makemigrations shows "No changes detected". What's wrong?
Loading...
Q&A · Answered
I made changes to my models but migrations are not being applied. makemigrations shows "No changes detected". What's wrong?
Accepted answer
This is a common Django issue. Here's how to troubleshoot:
# settings.py
INSTALLED_APPS = [
...
'your_app', # Make sure your app is listed
]
# Run with app name
python manage.py makemigrations your_app
# Show migration status
python manage.py showmigrations
# Fake apply if needed
python manage.py migrate --fake your_appSay what you tried, not only what worked — the next person needs the reasoning. Code goes in a fenced block.