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
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'))
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()
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
4 matches
Mail list logo