summaryrefslogtreecommitdiff
path: root/example_project/settings.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-10-28 14:22:55 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-10-28 14:24:46 +0200
commit6b2730288641ff0206fca8b2c0cbff1b1e442b1f (patch)
treeaf13a564ef0a92c2fe61e6d70cd4fffb66ba66ed /example_project/settings.py
parent516a0a55be0a5dd4b3d1849ab5b7e150be1c9d7f (diff)
downloadIshtar-6b2730288641ff0206fca8b2c0cbff1b1e442b1f.tar.bz2
Ishtar-6b2730288641ff0206fca8b2c0cbff1b1e442b1f.zip
Make the use of spatialite for tests not mandatory
Diffstat (limited to 'example_project/settings.py')
-rw-r--r--example_project/settings.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/example_project/settings.py b/example_project/settings.py
index 104569e29..26119451a 100644
--- a/example_project/settings.py
+++ b/example_project/settings.py
@@ -10,6 +10,7 @@ DEBUG_TOOLBAR = False
TEMPLATE_DEBUG = DEBUG
SQL_DEBUG = False
DJANGO_EXTENSIONS = False
+USE_SPATIALITE_FOR_TESTS = True
if "test" in sys.argv:
sys.path.insert(0, '..')
@@ -235,6 +236,8 @@ except ImportError, e:
if 'test' in sys.argv:
SOUTH_TESTS_MIGRATE = False
+
+if USE_SPATIALITE_FOR_TESTS:
DATABASES['default']['ENGINE'] = \
'django.contrib.gis.db.backends.spatialite'