aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Finucane <stephen@that.guru>2019-12-01 15:05:05 +0000
committerStephen Finucane <stephen@that.guru>2019-12-27 13:04:46 +0000
commit1bb0b97265043617eda2eef13dc9e70407925b1e (patch)
treed80c45705713d13126e87c2634f9fbd84b137c53
parent42b1dfa2c9de81b6a63f915c9cd989dc9dcf32be (diff)
downloadpatchwork-1bb0b97265043617eda2eef13dc9e70407925b1e.tar
patchwork-1bb0b97265043617eda2eef13dc9e70407925b1e.tar.gz
settings: Add configuration for sqlite DB backend
Signed-off-by: Stephen Finucane <stephen@that.guru>
-rw-r--r--patchwork/settings/dev.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/patchwork/settings/dev.py b/patchwork/settings/dev.py
index e110e74..c5afe0d 100644
--- a/patchwork/settings/dev.py
+++ b/patchwork/settings/dev.py
@@ -51,6 +51,13 @@ DATABASES = {
if os.getenv('PW_TEST_DB_TYPE', None) == 'postgres':
DATABASES['default']['ENGINE'] = 'django.db.backends.postgresql_psycopg2'
DATABASES['default']['HOST'] = os.getenv('PW_TEST_DB_HOST', '')
+elif os.getenv('PW_TEST_DB_TYPE', None) == 'sqlite':
+ DATABASES['default']['ENGINE'] = 'django.db.backends.sqlite3'
+ DATABASES['default']['NAME'] = '/dev/shm/patchwork.test.db.sqlite3'
+ del DATABASES['default']['HOST']
+ del DATABASES['default']['PORT']
+ del DATABASES['default']['USER']
+ del DATABASES['default']['PASSWORD']
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'