take postgres user from env

This commit is contained in:
Pēteris Caune 2015-06-29 20:54:46 +03:00
parent 8b95449c6f
commit c2238dec43

View File

@ -92,8 +92,7 @@ DATABASES = {
'default': { 'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2', 'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'hc', 'NAME': 'hc',
'USER': 'postgres', 'USER': env.get("pg_user", "postgres"),
'PASSWORD': '',
'TEST': {'CHARSET': 'UTF8'} 'TEST': {'CHARSET': 'UTF8'}
} }
} }