Django "You have unapplied migrations". Which ones?

Pier1 Sys picture Pier1 Sys · Jul 4, 2015 · Viewed 32.1k times · Source

Django runserver complains:

You have unapplied migrations; 
your app may not work properly until they are applied. 
Run 'python manage.py migrate' to apply them.

How can I find out which migrations are unapplied without running migrate?

Answer

Kevin Christopher Henry picture Kevin Christopher Henry · Jul 4, 2015

If you're on 1.7, use python manage.py migrate --list. (docs)

If you're on 1.8 or above, use python manage.py showmigrations --list. (docs)

In either case, there will be an [X] to show which migrations have been applied.