After Migrating to Python social auth, and authenticating user facebook account, instead of Python social-auth to redirect me to
SOCIAL_AUTH_NEW_USER_REDIRECT_URL = '/dashboard/'
It's redirecting me to the on site login page. which is
localhost:8000/accounts/login
My settings_dev.py:
SOCIAL_AUTH_NEW_USER_REDIRECT_URL = '/dashboard/'
SOCIAL_AUTH_LOGIN_REDIRECT_URL = '/dashboard/'
SOCIAL_AUTH_NEW_ASSOCIATION_REDIRECT_URL = '/dashboard/'
SOCIAL_AUTH_DISCONNECT_REDIRECT_URL = '/accounts/login/'
FACEBOOK_PROFILE_EXTRA_PARAMS = {'locale': 'ru_RU'}
SOCIAL_AUTH_EXTRA_DATA = False
SOCIAL_AUTH_RAISE_EXCEPTIONS = False
AUTHENTICATION_BACKENDS = (
#'social_auth.backends.facebook.FacebookBackend',
'social.backends.facebook.FacebookOAuth2',
'django.contrib.auth.backends.ModelBackend',
)
TEMPLATE_CONTEXT_PROCESSORS = (
...
'social.apps.django_app.context_processors.backends',
'social.apps.django_app.context_processors.login_redirect',
...
)
What am I missing?
After Migrating to Python social auth, and authenticating user facebook account, instead of Python social-auth to redirect me to
It's redirecting me to the on site login page. which is
My settings_dev.py:
What am I missing?