Try running python manage.py migrate --list and see which database migrations were not applied, then run the real migration with the same command, but without the --list argument.