Okay Thanks. So say for a login, should that be redirect?
Would there be a way to pass a context using the redirect much like you can with render_to_response? On Sep 18, 5:24 pm, Rajesh Dhawan <[EMAIL PROTECTED]> wrote: > On Sep 18, 4:26 pm, WillF <[EMAIL PROTECTED]> wrote: > > > Hey I'm just picking django , and I have a question. > > > What is the difference between httpresponseredirect and render_to_response? > > When should I use which? > > Use a redirect if the view changes your data (typically, after a POST, > DELETE, or PUT) and a render_to_response if your view reads your > data. > > See this article for why the redirect on data update is useful: > > http://en.wikipedia.org/wiki/Post/Redirect/Get > > -Rajesh D --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---