尝试通过运行 Django 项目来调试此错误
ImproperlyConfigured: AUTH_USER_MODEL refers to model 'accounts.User' that has not been installed
跑步
python manage.py migrate
必须迭代我绝不是 python 或 django 专家——我只是继承了别人的项目,我正试图在这里为团队运行。
我已按照步骤
install postgres
required modules including south
creating database for postgres
任何有关如何调试的帮助表示赞赏。
settings/base.py
包含
INSTALLED_APPS = DJANGO_APPS + THIRD_PARTY_APPS + LOCAL_APPS
LOCAL_APPS = (
'apps.core',
'apps.accounts',
'apps.project_tool',
'apps.internal',
'apps.external',
)
所以 apps.accounts 退出 - 但它要求AUTH_USER_MODEL = 'accounts.User'
- 它应该是
AUTH_USER_MODEL = 'apps.accounts.User'?