Thanks Gora, Praveen, Its working for me now.
~Puneet On Sat, May 23, 2009 at 8:15 AM, Praveen Kumar < [email protected]> wrote: > First of all refer the doc of Django what Gora suggested you. > Use the print statement or pdb to trace the line. > I have doubt in the line > request.session['cityname'] = *cityname* > you should write request.session['cityname'] = *request*.POST[cityname] > or just check the value of cityname. > Thanks. > > > On Sat, May 23, 2009 at 1:01 PM, Gora Mohanty <[email protected]> wrote: > >> On Sat, 23 May 2009 11:03:26 +0530 >> Puneet Aggarwal <[email protected]> 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 >> http://docs.djangoproject.com/en/dev/topics/http/sessions/ >> or the appropriate documentation version for your Django >> version. >> >> Regards, >> Gora >> _______________________________________________ >> BangPypers mailing list >> [email protected] >> http://mail.python.org/mailman/listinfo/bangpypers >> > > > > -- > Praveen Kumar > +91 9739854134 > http://praveensunsetpoint.wordpress.com > Bangalore > > _______________________________________________ > BangPypers mailing list > [email protected] > http://mail.python.org/mailman/listinfo/bangpypers > >
_______________________________________________ BangPypers mailing list [email protected] http://mail.python.org/mailman/listinfo/bangpypers
