authentic2-cut/tests/settings.py

20 lines
444 B
Python
Raw Normal View History

2018-09-27 15:53:28 +02:00
import os
2020-05-15 16:01:06 +02:00
ALLOWED_HOSTS = ['localhost']
2018-09-27 15:53:28 +02:00
DATABASES = {
'default': {
2020-05-15 16:01:06 +02:00
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'authentic2-cut',
2018-09-27 15:53:28 +02:00
}
}
2020-05-15 16:01:06 +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]
LANGUAGE_CODE = 'en'
A2_FC_CLIENT_ID = ''
A2_FC_CLIENT_SECRET = ''