我正努力在我的应用上设置django-social-auth。每当我点击http://< * domain here * / gt; / social / login / twitter /时,我会收到一个错误页面,上面写着'不正确的身份验证服务'twitter“',除了”WrongBackend“。
以下是我的settings.py:
INSTALLED_APPS = (
'django.contrib.auth',
<* omitted code *>
'social_auth',
)
AUTHENTICATION_BACKENDS = (
'social_auth.backends.twitter.TwitterBackend',
'django.contrib.auth.backends.ModelBackend',
)
TEMPLATE_CONTEXT_PROCESSORS = (
"django.contrib.auth.context_processors.auth",
<* omitted code *>
'social_auth.context_processors.social_auth_by_type_backends',
'social_auth.context_processors.social_auth_login_redirect',
)
LOGIN_URL = '/auth/login/'
LOGIN_REDIRECT_URL = '/account/'
LOGIN_ERROR_URL = '/auth/login/error/'
TWITTER_CONSUMER_KEY = '<* omitted code *>'
TWITTER_CONSUMER_SECRET = '<* omitted code *>'
和我的网址
urlpatterns = patterns('',
<* omitted code *>
url(r'social/', include('social_auth.urls')),
)
我错过了这个明显的东西吗?