view bns_website/settings/test.py @ 62:93e9e7b3d2ae

Put in an import dance for Python 2.5. Apparently cgi.parse_qs was copied to urlparse in Python 2.6. So look for it first in urlparse, and if not found, try cgi.
author Brian Neal <bgneal@gmail.com>
date Sat, 19 Nov 2011 14:47:17 -0600
parents 71f2941161e9
children
line wrap: on
line source
"""
Settings to use when running tests. Uses sqlite for speed.
This idea was taken from
http://blog.davidziegler.net/post/370368042/test-database-settings-in-django

"""
from settings.base import *
from settings.local import *

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': 'test.db',
    },
}