Re: HttpResponseRedirect and user message

2010-05-04 Thread Daniel Roseman
On May 4, 9:43 am, xpanta wrote: > Thank you. One more thing: how to save info in the session? Read the fine documentation: http://docs.djangoproject.com/en/1.1/topics/http/sessions/ -- DR. -- You received this message because you are subscribed to the Google Groups "Django users" group. To po

Re: HttpResponseRedirect and user message

2010-05-04 Thread xpanta
Thank you. One more thing: how to save info in the session? On 4 Μάϊος, 11:27, "ge...@aquarianhouse.com" wrote: > i would use reverse and redirect to a "success" page > > def my_view(request): >     #do stufff >     #save info in session >     return HttpResponseRedirect(reverse('success_url'))

Re: HttpResponseRedirect and user message

2010-05-04 Thread ge...@aquarianhouse.com
i would use reverse and redirect to a "success" page def my_view(request): #do stufff #save info in session return HttpResponseRedirect(reverse('success_url')) def my_success_view(request): #access the session and get the data return render_to_response('success.html', locals()

HttpResponseRedirect and user message

2010-05-04 Thread xpanta
Hi, I am new to django, and I have this simple task i need to accomplish. in views.py there is a function that processes an html form (with POST action). This function returns an HttpResponseRedirect object. This object gets as parameters the redirect action, like this: return HttpResponseRedirec