101 lines
2.5 KiB
Python
101 lines
2.5 KiB
Python
import os
|
|
import tempfile
|
|
|
|
DATABASES = {
|
|
'default': {
|
|
'ENGINE': os.environ.get('DB_ENGINE', 'django.db.backends.postgresql_psycopg2'),
|
|
'NAME': 'combo-test-%s' % os.environ.get("BRANCH_NAME", "").replace('/', '-')[:45],
|
|
}
|
|
}
|
|
|
|
LANGUAGE_CODE = 'en-us'
|
|
|
|
KNOWN_SERVICES = {
|
|
'wcs': {
|
|
'default': {
|
|
'title': 'test',
|
|
'url': 'http://127.0.0.1:8999/',
|
|
'secret': 'combo',
|
|
'orig': 'combo',
|
|
'backoffice-menu-url': 'http://127.0.0.1:8999/backoffice/',
|
|
'secondary': False,
|
|
},
|
|
'other': {
|
|
'title': 'test2',
|
|
'url': 'http://127.0.0.2:8999/',
|
|
'secret': 'combo',
|
|
'orig': 'combo',
|
|
'backoffice-menu-url': 'http://127.0.0.2:8999/backoffice/',
|
|
'secondary': True,
|
|
},
|
|
},
|
|
'passerelle': {
|
|
'default': {
|
|
'title': 'test',
|
|
'url': 'http://example.org',
|
|
'secret': 'combo',
|
|
'orig': 'combo',
|
|
'backoffice-menu-url': 'http://example.org/manage/',
|
|
}
|
|
},
|
|
'chrono': {
|
|
'default': {
|
|
'title': 'test',
|
|
'url': 'http://chrono.example.org',
|
|
'secret': 'combo',
|
|
'orig': 'combo',
|
|
'backoffice-menu-url': 'http://chrono.example.org/manage/',
|
|
'secondary': False,
|
|
},
|
|
'other': {
|
|
'title': 'other',
|
|
'url': 'http://other.chrono.example.org',
|
|
'secret': 'combo',
|
|
'orig': 'combo',
|
|
'backoffice-menu-url': 'http://other.chrono.example.org/manage/',
|
|
'secondary': True,
|
|
},
|
|
},
|
|
}
|
|
|
|
MESSAGE_STORAGE = 'django.contrib.messages.storage.session.SessionStorage'
|
|
|
|
LINGO_API_SIGN_KEY = '12345'
|
|
LINGO_SIGNATURE_KEY = '54321'
|
|
|
|
COMBO_DASHBOARD_ENABLED = True
|
|
|
|
MEDIA_ROOT = tempfile.mkdtemp('combo-test')
|
|
|
|
if 'DISABLE_MIGRATIONS' in os.environ:
|
|
|
|
class DisableMigrations:
|
|
def __contains__(self, item):
|
|
return True
|
|
|
|
def __getitem__(self, item):
|
|
return 'notmigrations'
|
|
|
|
MIGRATION_MODULES = DisableMigrations()
|
|
|
|
|
|
BOOKING_CALENDAR_CELL_ENABLED = True
|
|
LEGACY_CHART_CELL_ENABLED = True
|
|
|
|
USER_PROFILE_CONFIG = {
|
|
'fields': [
|
|
{
|
|
'name': 'first_name',
|
|
'kind': 'string',
|
|
'label': 'First Name',
|
|
'user_visible': True,
|
|
},
|
|
{
|
|
'name': 'birthdate',
|
|
'kind': 'birthdate',
|
|
'label': 'Birth Date',
|
|
'user_visible': True,
|
|
},
|
|
]
|
|
}
|