Search code examples
djangodjango-migrations

Django "You have unapplied migrations". Which ones?


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?


Solution

  • 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.