【问题标题】:django-social-auth app not working under virtualenvdjango-social-auth 应用程序无法在 virtualenv 下运行
【发布时间】:2011-08-09 23:50:24
【问题描述】:

我将我的 django 项目转移到了 virtualenv。我使用 pip 安装了django-social-auth 库。我将在 virtualenv 之外工作的相同文件复制到新环境中,但我得到了一个

渲染时捕获 NoReverseMatch:“begin”参数“(u'facebook',)”和关键字参数“{}”未找到。

我可以在 django shell 中导入 social_auth 库,并且 social_auth 包含在 INSTALLED_APPS 中,并且它的 url 存在于 urls.py 文件中。

我会犯什么错误?

【问题讨论】:

    标签: django django-templates


    【解决方案1】:

    当您使用 pip 安装 django-social-auth 时,所有 socialauth url 都必须包含前缀 "socialauth_" 。问题是discussed on github

    【讨论】:

      猜你喜欢
      • 2013-10-07
      • 1970-01-01
      • 2012-01-14
      • 1970-01-01
      • 2012-11-26
      • 2016-09-05
      • 1970-01-01
      • 2018-09-26
      • 1970-01-01
      相关资源
      最近更新 更多