Friday, May 29, 2015

Re: calling a view from a view doesnt clear the URL path

can I redirect with an argument?

On Friday, May 29, 2015 at 1:00:07 PM UTC-5, Daniel Roseman wrote:
Why should it? The browser requested the original view, and the code returned a response to that request. The browser doesn't know or care that the process of constructing that response involved calling another view function.

If you want to change the URL, instead of returning the result of another view, you should return a *redirect* to that view.

--
DR.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/908461ec-513e-4193-b465-00670074c366%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment