(DatabaseError: no such table: django_session) ERROR during Django 1.3 selenium testing
If its in memory(like in your example), the second its closed, the data disappears.
Make an actual db file, that will solve the problem. You can do this by simply giving the absolute path to the file, if there does not happen to be one, it will create one for you.