I'm struggling to set up django-social-auth on my app. Whenever I hit http://<* domain here *>/social/login/twitter/ I get an error page saying 'Incorrect authentication service "twitter"' with the exception "WrongBackend".
Here are is my 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 *>'
and my URLs
urlpatterns = patterns('',
<* omitted code *>
url(r'social/', include('social_auth.urls')),
)
Am I missing anything obvious on this one?