anyone?From django-registration docs:
On Monday, May 28, 2012 1:54:20 AM UTC+1, psychok7 wrote:hi there i am writing an app using django-registration 0.8 installed from pip and using the simple-backend--
my problem is, when i register a new user it logs me in after inserting in the db and redirects me to /users/<username>/ but if i login normally using the django.contrib.auth it redirects me to accounts/profile.
my question is, how do i unify this redirect since it should take me to the same place?
thanks
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/okwBS3_w15gJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Upon successful registration, the default redirect is to the URL specified by the get_absolute_url() method of the newly-created User object; by default, this will be /users/<username>/, although it can be overridden in either of two ways:
- Specify a custom URL pattern for the register() view, passing the keyword argument success_url.
- Override the default get_absolute_url() of the User model in your Django configuration, as covered in Django’s settings documentation.
http://docs.b-list.org/django-registration/0.8/simple-backend.html
No comments:
Post a Comment