アプリで django-social-auth を設定するのに苦労しています。http://<* domain here *>/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 *>'
と私の URL
urlpatterns = patterns('',
<* omitted code *>
url(r'social/', include('social_auth.urls')),
)
これについて明らかな何かが欠けていますか?