Re: Accessing session variables in template with django

2009-05-23 Thread Puneet
Thanks Daniel, Its working fine now. :) On May 23, 1:39 am, Daniel Roseman wrote: > On May 23, 6:34 am, Puneet wrote: > > > > > Hi All, > > > I am facing issue when I am trying to access session variables in > > django. > > > I am setting the session variable something like : > > >  request.se

Re: Accessing session variables in template with django

2009-05-23 Thread Daniel Roseman
On May 23, 6:34 am, Puneet wrote: > Hi All, > > I am facing issue when I am trying to access session variables in > django. > > I am setting the session variable something like : > >  request.session['cityname'] = cityname >  c = RequestContext(request, {'current_date': now}) >  html = t.render(c

Accessing session variables in template with django

2009-05-22 Thread Puneet
Hi All, I am facing issue when I am trying to access session variables in django. I am setting the session variable something like : request.session['cityname'] = cityname c = RequestContext(request, {'current_date': now}) html = t.render(c) return HttpResponse(html) And I am trying to acc