gabrielfalcao/lettuce — Issue #219: Using in-memory database (django)
Author: SystemParadox
Created: 2012-01-11 12:24:01+00:00
State: open

Hi. I am currently unable to use an in-memory database with django and lettuce. I have a @before.harvest event that runs call_command for syncdb and loaddata- this works well with file-based SQLite databases, MySQL, etc.

However, changing the SQLite database name to the special value ":memory:" results in 'no such table' errors when accessed via the test server. It works fine with django test client (which does not use the test server), which suggests that lettuce and the test server it sets up are using different database instances.

Any suggestions for fixes or workarounds much appreciated.

Many thanks.
Simon