I was trying to use the social authentication on my application. Until now, I did not face with any problem. However in this application I am using Django 1.5.1 and application redirects me to error page and I can not find any solution or traceback.
And also when I check from the admin page, I see that social registration profile or my custom user have not been created. (I did not have the username field on create_user method, but after I checked other questions, I also added that.)
And the redirect url is, "GET /complete/facebook/?redirect_state=.....&state=.... HTTP/1.1" 302 0
# Settings
TEMPLATE_CONTEXT_PROCESSORS = (
'django.contrib.auth.context_processors.auth',
'django.core.context_processors.request',
'django.contrib.messages.context_processors.messages',
'social_auth.context_processors.social_auth_by_name_backends',
'social_auth.context_processors.social_auth_backends',
'social_auth.context_processors.social_auth_login_redirect',
)
FACEBOOK_APP_ID = 'XXX'
FACEBOOK_API_SECRET = 'XXX'
AUTHENTICATION_BACKENDS = (
'social_auth.backends.facebook.FacebookBackend',
'django.contrib.auth.backends.ModelBackend',
)
FACEBOOK_EXTENDED_PERMISSIONS = ['email']
SOCIAL_AUTH_USER_MODEL = 'accounts.CustomUser'
SOCIAL_AUTH_RAISE_EXCEPTIONS = True
LOGIN_REDIRECT_URL = '/'
LOGIN_URL = '/'
LOGIN_ERROR_URL = '/facebook/error/'
I tried to follow the error from the social-auth/views.py and saw that error is "No handlers could be found for logger "SocialAuth"" coming from somewhere, but I have no idea how to fix that.
Is there anyone who knows the solution or saw this error in this situation?