redirect page/view after login in 'django-registration'

397 views
Skip to first unread message

H.T. Wei

unread,
Mar 21, 2012, 7:45:35 PM3/21/12
to django...@googlegroups.com
Hey,

I used 'django-registration' for user registration. Is there anyone know how configure to redirect the page/view I want after login?
Thanks in advance.

--
" stay hungry, stay foolish"

Mario Gudelj

unread,
Mar 21, 2012, 9:00:45 PM3/21/12
to django...@googlegroups.com

You do this in your settings file. Not sure of the exact sintax but it's something like login="yoururl".

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Ahmad Abd Arrahman

unread,
Mar 21, 2012, 10:19:28 PM3/21/12
to django...@googlegroups.com
edite this line in your settings.py or add it if not there

#Login redirects to
LOGIN_REDIRECT_URL = '/accounts/profile'


Reply all
Reply to author
Forward
0 new messages