Skip to content

Commit

Permalink
switch to sqlite for preprod database
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonejt committed Nov 24, 2023
1 parent c5556b4 commit 84abf41
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sibyl/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
}


Expand Down

0 comments on commit 84abf41

Please sign in to comment.