Re: session variable

2007-02-23 Thread Lawrence Oluyede
On 2/23/07, Seth Buntin <[EMAIL PROTECTED]> wrote: > Can I have a list as a session variable? The session object is a dictionary-look-alike. It's available through request.session. See -- Lawrence, oluyede.org - neropercaso.it "It is diffic

Re: session variable

2007-02-23 Thread Seth Buntin
So I can have for instance: request.session["order_items"] = [] and then in different view I can have: request.session["order_items"].append(1) and that append to the session variable? --~--~-~--~~~---~--~~ You received this message because you

Re: session variable

2007-02-23 Thread Honza Král
On 2/23/07, Seth Buntin <[EMAIL PROTECTED]> wrote: > > So I can have for instance: > > request.session["order_items"] = [] > > and then in different view I can have: > > request.session["order_items"].append(1) > > and that append to the session variable? yes, but the session itsel

Re: session variable

2007-02-23 Thread Seth Buntin
WowI just needed to read a little bit further. Thanks. Seth --~--~-~--~~~---~--~~ 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 unsubscri

Re: session variable in template

2007-06-12 Thread [EMAIL PROTECTED]
You need to add an entry in your settings.py for TEMPLATE_CONTEXT_PROCESSORS, which will basically point to a function which will put your data in a variable accessible to your template. I basically have a variable that stores my site root url, so in a utility file I have, I defined this functio

Re: session variable in template

2007-06-12 Thread Malcolm Tredinnick
On Tue, 2007-06-12 at 13:27 +, Dushyant Sharma wrote: > i am building single page for logged in users and anonymous users > where i can use uid for logged in users and show specific things to > them and for this i want to use session variable in template. i am > trying request.session.uid in t

Re: session variable in template

2007-06-13 Thread Dushyant Sharma
how can i use it with HttpResponseRedirect() like if i wish to use it as return HttpResponseRedirect('/someurl', RequestContext(request)) is it possible On Jun 13, 5:42 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Tue, 2007-06-12 at 13:27 +, Dushyant Sharma wrote: > > i am buildin

Re: session variable in template

2007-06-13 Thread Malcolm Tredinnick
On Wed, 2007-06-13 at 07:31 +, Dushyant Sharma wrote: > how can i use it with HttpResponseRedirect() > > like if i wish to use it as return HttpResponseRedirect('/someurl', > RequestContext(request)) You don't pass a context to HttpResponseRedirect because it doesn't render a template. Howe