Django Auth模型问题 - 未安装AUTH_USER_MODEL

时间:2013-10-21 15:46:56

标签: python django postgresql

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

2 个答案:

答案 0 :(得分:2)

我认为accounts应用尚未添加到settings.py中的INSTALLED_APPS

答案 1 :(得分:0)

你在南方跑0.8.3吗?

确保您至少运行South 0.8.4

GitHub issue 南方发布Notes