¡@

Home 

python Programming Glossary: success_url

Improving Python/django view code

http://stackoverflow.com/questions/6245755/improving-python-django-view-code

'registration profile.html' # whatever your template is... success_url ' home ' def get_initial self return 'user' self.request.user..

Getting `django-registration` to send you to the page you were originally trying to visit

http://stackoverflow.com/questions/7930526/getting-django-registration-to-send-you-to-the-page-you-were-originally-trying

registration.views.activate you'll see that it accepts a success_url parameter which is The name of a URL pattern to redirect to.. # You could use reverse here instead of a URL to be DRY'er success_url http ... Alternatively you could wrap up django registrations.. request backend template_name 'registration activate.html' success_url None extra_context None kwargs success_url request.GET.get 'next'..