Django migrations not applying - troubleshooting guide

Answered
Jan 05, 2026 1638 views 1 answers
40

I made changes to my models but migrations are not being applied. makemigrations shows "No changes detected". What's wrong?

P
Asked by python_dev
Platinum 447 rep

1 Answer

17

This is a common Django issue. Here's how to troubleshoot:

Check app is in INSTALLED_APPS

# settings.py
INSTALLED_APPS = [
    ...
    'your_app',  # Make sure your app is listed
]

Specify app name explicitly

# Run with app name
python manage.py makemigrations your_app

Check for migration conflicts

# Show migration status
python manage.py showmigrations
# Fake apply if needed
python manage.py migrate --fake your_app
H
Answered by hassan_ops 1 week, 2 days ago
Bronze 565 rep

Your Answer

You need to be logged in to answer questions.

Log In to Answer

Related Questions

Hot Questions

No hot questions available.