Skip to content

Commit

Permalink
feat(settings): use DJANGO_DB_DIR in database config
Browse files Browse the repository at this point in the history
  • Loading branch information
thekaveman committed Nov 1, 2023
1 parent 59731fd commit 16a6525
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion benefits/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Django settings for benefits project.
"""
import os

from benefits import sentry


Expand Down Expand Up @@ -147,10 +148,11 @@ def _filter_empty(ls):

WSGI_APPLICATION = "benefits.wsgi.application"

DATABASE_DIR = os.environ.get("DJANGO_DB_DIR", BASE_DIR)
DATABASES = {
"default": {
"ENGINE": "django.db.backends.sqlite3",
"NAME": "django.db",
"NAME": os.path.join(DATABASE_DIR, "django.db"),
}
}

Expand Down

0 comments on commit 16a6525

Please sign in to comment.