Skip to content

Commit d541ec3

Browse files
committed
Fixed access to django db on preview server
1 parent 7214a1e commit d541ec3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

DjangoPlugin/tracdjangoplugin/settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
DATABASES = {
1313
"default": {
1414
"ENGINE": "django.db.backends.postgresql",
15-
"NAME": "djangoproject",
16-
"USER": "djangoproject",
15+
"NAME": os.getenv("DJANGO_DB_NAME", "djangoproject"),
16+
"USER": SECRETS.get("db_user", "djangoproject"),
1717
"HOST": SECRETS.get("db_host", ""),
1818
"PORT": SECRETS.get("db_port", 5432),
1919
"PASSWORD": SECRETS.get("db_password", ""),

0 commit comments

Comments
 (0)