尝试通过运行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'?