Friday, August 6, 2010

HttpResponseRedirect

I have two pages with two different forms. Each, if validated, redirects
to "thanks" page. I want to customize this behavior, so "thanks" page
should display different message, regarding witch form was invoked, or
redirects to "/' if no redirection took place (like user typed in browser
"test.com/thanks")
Unfortunately, HttpResponseRedirect takes only one argument. How can i
pass right message anyway? Or mb there is some workaround, like i could
check in "thanks" view, from what page it was redirected?


--
Linux user

--
You received this message because you are subscribed to the Google Groups "Django users" group.
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.

No comments:

Post a Comment