Alternatively, you can write your own social account adapter to handle various logged redirects from different social accounts and not bother with your usual account settings, like this:
# adapter.py from allauth.socialaccount.adapter import DefaultSocialAccountAdapter class SocialAccountAdapter(DefaultSocialAccountAdapter): def get_login_redirect_url(self, request):
Edited by:
If you want to change the redirection for a newly registered, you can configure the save_user method:
class SocialAccountAdapter(DefaultSocialAccountAdapter): ... def save_user(self, request, sociallogin, form=None): super(DefaultSocialAccountAdapter, self).save_user(request, sociallogin, form=form)
Anzel source share