On Wed, Oct 20, 2010 at 10:33 PM, Miguel Araujo <muchoch...@gmail.com> wrote:
> Hi everyone,
> Is there any way to force sqlite3 to use a file instead of RAM when running
> tests? I would like to access the DB somehow to check some fields. This is
> the only DB engine I have in this machine.

Yes - set the TEST_NAME (or DATABASE_TEST_NAME if you're using pre 1.2
style database settings) to a specific file name [1]. This will
override the default behavior of using :memory: as the test database
name.

[1] http://docs.djangoproject.com/en/dev/ref/settings/#test-name

Yours,
Russ Magee %-)

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to