]> git.parisson.com Git - django-social-auth.git/commitdiff
Redirect to / on login
authorRohan Jain <crodjer@gmail.com>
Mon, 13 Jun 2011 06:56:29 +0000 (12:26 +0530)
committerRohan Jain <crodjer@gmail.com>
Mon, 13 Jun 2011 06:56:29 +0000 (12:26 +0530)
Prevent 404 for profile page by redirecting to '/' page always on login.

example/settings.py

index 689f9d1b08955cb4f709213464abfd5bfc2a99b2..158e790a6e1792a224f29a0b7cf64a84fef675e6 100644 (file)
@@ -74,6 +74,8 @@ AUTHENTICATION_BACKENDS = (
     'django.contrib.auth.backends.ModelBackend',
 )
 
+LOGIN_REDIRECT_URL = '/'
+
 try:
     from local_settings import *
 except: