This commit is contained in:
2025-07-14 14:24:00 +02:00
parent 59e4e62bc0
commit 0827ed76a2
6 changed files with 9 additions and 38 deletions

View File

@@ -85,12 +85,12 @@ WSGI_APPLICATION = "sop.wsgi.application"
DATABASES = {
"default": {
"ENGINE": "django.db.backends.postgresql",
"NAME": f"{os.environ.get("DB_NAME")}",
"USER": f"{os.environ.get("DB_USER")}",
"PASSWORD": f"{os.environ.get("DB_PASSWD")}",
"HOST": f"{os.environ.get("DB_HOST")}",
"PORT": f"{os.environ.get("DB_PORT")}",
"ENGINE": f"{os.environ.get("DB_ENGINE", "django.db.backends.sqlite3")}",
"NAME": f"{os.environ.get("DB_NAME", os.path.join(BASE_DIR , 'db.sqlite3'))}",
"USER": f"{os.environ.get("DB_USER", "")}",
"PASSWORD": f"{os.environ.get("DB_PASSWD", "")}",
"HOST": f"{os.environ.get("DB_HOST", "")}",
"PORT": f"{os.environ.get("DB_PORT", "")}",
}
}