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': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'hc',
'USER': 'postgres',
'PASSWORD': '',
'USER': env.get("pg_user", "postgres"),
'TEST': {'CHARSET': 'UTF8'}
}
}