20 lines
471 B
Python
20 lines
471 B
Python
import os
|
|
|
|
LANGUAGE_CODE = 'en'
|
|
DATABASES = {
|
|
'default': {
|
|
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
|
'TEST': {
|
|
'NAME': 'authentic2-auth-kerberos',
|
|
},
|
|
}
|
|
}
|
|
|
|
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]
|
|
|
|
ALLOWED_HOSTS = ['localhost']
|
|
A2_AUTH_KERBEROS_ENABLE = True
|