Friday, May 29, 2015

calling a view from a view doesnt clear the URL path

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/f041caab-c0cd-4d42-b12b-b2cf6928b659%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment