[BangPypers] Acessing session variables in template with django

Gora Mohanty gora at srijan.in
Sat May 23 09:31:48 CEST 2009

On Sat, 23 May 2009 11:03:26 +0530
Puneet Aggarwal <look4puneet at gmail.com> 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

This should work. Have you set MIDDLEWARE_CLASSES properly
in settings.py, and added django.contrib.sessions to your
INSTALLED_APPS? See the top of
or the appropriate documentation version for your Django


More information about the BangPypers mailing list