2020-05-16 12:12:39 +02:00
|
|
|
import os
|
|
|
|
|
2017-10-11 18:14:02 +02:00
|
|
|
DATABASES = {
|
|
|
|
'default': {
|
|
|
|
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
2020-05-16 12:12:39 +02:00
|
|
|
'NAME': 'petale',
|
2017-10-11 18:14:02 +02:00
|
|
|
}
|
|
|
|
}
|
2020-05-16 12:12:39 +02:00
|
|
|
|
|
|
|
if 'postgres' in DATABASES['default']['ENGINE']:
|
|
|
|
for key in ('PGPORT', 'PGHOST', 'PGUSER', 'PGPASSWORD'):
|
|
|
|
if key in os.environ:
|
|
|
|
DATABASES['default'][key[2:]] = os.environ[key]
|
|
|
|
|
|
|
|
PETALE_AUTHENTIC_URL = 'http://example.net/idp/'
|
|
|
|
PETALE_AUTHENTIC_AUTH = ('foo', 'bar')
|