From c2238dec431308791a6b200e1c12b6ad25022580 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=93teris=20Caune?= Date: Mon, 29 Jun 2015 20:54:46 +0300 Subject: [PATCH] take postgres user from env --- hc/settings.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hc/settings.py b/hc/settings.py index ab8fed33..fa8e31e5 100644 --- a/hc/settings.py +++ b/hc/settings.py @@ -92,8 +92,7 @@ DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'hc', - 'USER': 'postgres', - 'PASSWORD': '', + 'USER': env.get("pg_user", "postgres"), 'TEST': {'CHARSET': 'UTF8'} } }