29 lines
730 B
Python
29 lines
730 B
Python
import os
|
|
|
|
LANGUAGE_CODE = 'en-us'
|
|
TIME_ZONE = 'UTC'
|
|
|
|
if 'passerelle.apps.atreal_openads' in INSTALLED_APPS:
|
|
INSTALLED_APPS = tuple(x for x in INSTALLED_APPS if x != 'passerelle.apps.atreal_openads')
|
|
|
|
if 'atreal_openads' not in INSTALLED_APPS:
|
|
INSTALLED_APPS += ('atreal_openads',)
|
|
|
|
CACHES = {
|
|
'default': {
|
|
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
|
|
},
|
|
'dummy': {
|
|
'BACKEND': 'django.core.cache.backends.dummy.DummyCache'
|
|
}
|
|
}
|
|
|
|
DATABASES = {
|
|
'default': {
|
|
'ENGINE': os.environ.get('DB_ENGINE', 'django.db.backends.sqlite3'),
|
|
'TEST': {
|
|
'NAME': 'passerelle-test-%s' % os.environ.get("BRANCH_NAME", "").replace('/', '-')[:63],
|
|
},
|
|
}
|
|
}
|