Blog Archive for February 16, 2010

Django File Based Sessions on Windows

February 16, 2010

Django's file based sessions, specified with:

SESSION_ENGINE = "django.contrib.sessions.backends.file"
SESSION_FILE_PATH = "/tmp/"

Don't work on windows, due to the bug here: http://code.djangoproject.com/ticket/9084

The symptom is that the session doesn't save any values that are placed into it.

Django on Jython Tips

February 16, 2010

I'm using Django on Jython so that I can deploy my app in Tomcat without needing to install a python runtime. This is for a packaged app, so not adding extra dependencies is good.

Installing

I installed Jython 2.5.1.

I then setup a project in Eclipse (using pydev) with django …