【问题标题】:Installing django-userena: userena.compat.SiteProfileNotAvailable when trying to create accounts app在尝试创建帐户应用程序时安装 django-userena:userena.compat.SiteProfileNotAvailable
【发布时间】: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


    【解决方案1】:

    确保尚未安装 userena 和其他应用程序,因为 manage.py startapp accounts 是安装说明的第一步。

    【讨论】:

      猜你喜欢
      • 2016-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-02-24
      • 2016-12-21
      • 2022-10-14
      • 2011-01-29
      • 1970-01-01
      相关资源
      最近更新 更多