feat(settings): Make databases configurable

This commit is contained in:
Tom Hubrecht 2024-09-24 22:06:50 +02:00
parent 8a46e4ddb5
commit 7537b26fbe
Signed by: thubrecht
SSH key fingerprint: SHA256:r+nK/SIcWlJ0zFZJGHtlAoRwq1Rm+WcKAm5ADYMoQPc

View file

@ -98,12 +98,15 @@ ASGI_APPLICATION = "app.asgi.application"
# Database configuration
# -> https://docs.djangoproject.com/en/4.2/ref/settings/#databases
DATABASES = {
DATABASES = credentials.get_json(
"DATABASES",
{
"default": {
"ENGINE": "django.db.backends.sqlite3",
"NAME": BASE_DIR / "db.sqlite3",
}
}
},
)
###