Use the current user for DB access
This commit is contained in:
parent
cec752b998
commit
64ddd7ef66
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue