Use the current user for DB access

This commit is contained in:
Andreas Zweili 2023-07-14 14:15:11 +02:00
parent cec752b998
commit 64ddd7ef66
1 changed files with 3 additions and 1 deletions

View File

@ -2,6 +2,8 @@ from socket import gethostname
from socket import gethostbyname
from socket import getfqdn
import os
from .base import *
@ -27,7 +29,7 @@ DATABASES = {
"default": {
"ENGINE": "django.db.backends.postgresql",
"NAME": "postgres",
"USER": "postgres",
"USER": os.environ.get("USER"),
"HOST": "localhost",
"PORT": 5432,
"PASSWORD": "password",