From 84abf415854d9c0a4191d119ac76712dc2979740 Mon Sep 17 00:00:00 2001 From: Evan Tung Date: Fri, 24 Nov 2023 17:14:15 -0500 Subject: [PATCH] switch to sqlite for preprod database --- sibyl/settings.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sibyl/settings.py b/sibyl/settings.py index 8407494..e17cfc0 100644 --- a/sibyl/settings.py +++ b/sibyl/settings.py @@ -83,7 +83,10 @@ # https://docs.djangoproject.com/en/4.0/ref/settings/#databases DATABASES = { - 'default': dj_database_url.parse(os.getenv("DATABASE_URL")) + 'default': dj_database_url.parse(os.getenv("DATABASE_URL")) if os.getenv("ENV") == "production" else { + "ENGINE": 'django.db.backends.sqlite3', + "NAME": os.path.join(BASE_DIR, "db.sqlite3") + } }