我在使用django-allauth时遇到了问题。我得到了这个错误。
找不到参数为'()‘和关键字参数为'{}’的'facebook_channel‘在/ NoReverseMatch /NoReverseMatch/ Reverse处的登录。
到目前为止,我已经严格遵守了所有的规定。
这是我的settings.py
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
# Uncomment the next line to enable the admin:
'django.contrib.admin',
# Uncomment the next line to enable admin documentation:
# 'django.contrib.admindocs',
'app',
'uni_form',
'emailconfirmation',
'allauth',
'allauth.account',
'allauth.socialaccount',
'allauth.socialaccount.providers.facebook',
'allauth.socialaccount.providers.twitter',
)
TEMPLATE_CONTEXT_PROCESSORS = (
"django.core.context_processors.request",
"allauth.context_processors.allauth",
"allauth.account.context_processors.account",
"django.contrib.auth.context_processors.auth",
)
AUTHENTICATION_BACKENDS = (
"allauth.account.auth_backends.AuthenticationBackend",
)此外,我还添加了facebook的秘密和应用程序id从管理模块的allauth提供。
期待您的快速回复。
发布于 2012-06-18 07:11:13
只是面对并解决了同样的问题。您需要安装django-allauth所依赖的Facebook SDK egg,即:
pip install -e git://github.com/pythonforfacebook/facebook-sdk.git#egg=facebook-sdk(顺便说一下,如果您使用的是Django 1.4,那么在确认电子邮件地址时,由于django-allauth没有使用新的时区感知日期,您将遇到运行时错误。快速解决方法是设置
USE_TZ = False在您的settings.py中。)
https://stackoverflow.com/questions/11065610
复制相似问题