mirror of
https://github.com/jazzband/django-ddp.git
synced 2026-03-16 22:40:24 +00:00
Use libpq environment variables for DB settings in test project.
This commit is contained in:
parent
437313267f
commit
7bdd6baa85
1 changed files with 5 additions and 1 deletions
|
|
@ -62,7 +62,11 @@ WSGI_APPLICATION = 'dddp.test.test_project.wsgi.application'
|
|||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
||||
'NAME': 'django_ddp_test_project',
|
||||
'NAME': os.environ.get('PGDATABASE', 'django_ddp_test_project'),
|
||||
'USER': os.environ.get('PGUSER', os.environ['LOGNAME']),
|
||||
'PORT': int(os.environ.get('PGPORT', '0')) or None,
|
||||
'PASSWORD': os.environ.get('PGPASSWORD', '') or None,
|
||||
'HOST': os.environ.get('PGHOST', '') or None,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue