【发布时间】:2016-11-05 21:01:56
【问题描述】:
运行 Django 1.9 我正在尝试按照 django-userena 的安装说明将其添加到现有的 django 项目中。
当我尝试创建帐户应用时:
python manage.py startapp accounts
我收到此错误:
userena.compat.SiteProfileNotAvailable
Otherquestions表示我需要设置AUTH_PROFILE_MODULE,按照installation instructions的指示。但是,这些假设我已经创建了一个 Accounts 应用,并在其中创建了一个 Profile 模型。
所以我似乎陷入了循环依赖,没有 Profile 模型我无法创建 Accounts 应用程序,但没有 Accounts 应用程序我无法创建 Profile 模型!
此外,根据说明,在此步骤中似乎不需要 AUTH_PROFILE_MODULE 来创建帐户应用程序。
我该如何解决这个问题?
【问题讨论】:
标签: python django user-accounts