【发布时间】:2015-04-20 08:14:15
【问题描述】:
我最近向我的应用程序 (UserProfile) 添加了一个模型,当我将更改推送到 Heroku 时,我想我不小心运行了 heroku run python manage.py makemigrations。现在,当我尝试运行 heroku run python manage.py migrate 时,出现以下错误
(leaguemaster) benjamins-mbp-2:leaguemaster Ben$ heroku run python manage.py migrate
Running `python manage.py migrate` attached to terminal... up, run.1357
Operations to perform:
Synchronize unmigrated apps: allauth
Apply all migrations: auth, admin, socialaccount, sites, accounts, account, contenttypes, sessions, leagueapp
Synchronizing apps without migrations:
Creating tables...
Installing custom SQL...
Installing indexes...
Running migrations:
No migrations to apply.
Your models have changes that are not yet reflected in a migration, and so won't be applied.
Run 'manage.py makemigrations' to make new migrations, and then re-run 'manage.py migrate' to apply them.
我该如何解决这个问题?请帮忙!
【问题讨论】:
-
我猜到了,因为我改变了 INSTALLED_APPS 的顺序。我看不出其他原因,但
标签: python django heroku django-1.7 django-migrations