chore: env variables needs optional value

This commit is contained in:
vamsi 2023-01-11 00:11:47 +05:30
parent 95097bfbf2
commit 50503620de

View File

@ -19,9 +19,9 @@ DATABASES = {
"default": {
"ENGINE": "django.db.backends.postgresql_psycopg2",
"NAME": "plane",
"USER": os.environ.get("PGUSER"),
"PASSWORD": os.environ.get("PGPASSWORD"),
"HOST": os.environ.get("PGHOST"),
"USER": os.environ.get("PGUSER", ""),
"PASSWORD": os.environ.get("PGPASSWORD", ""),
"HOST": os.environ.get("PGHOST", ""),
}
}