2020-03-06 09:43:52 +01:00
|
|
|
import os
|
|
|
|
|
2017-05-15 23:52:18 +02:00
|
|
|
TIME_ZONE = 'Europe/Paris'
|
2016-02-13 09:56:55 +01:00
|
|
|
LANGUAGE_CODE = 'en-us'
|
2019-09-21 21:21:14 +02:00
|
|
|
|
|
|
|
REST_FRAMEWORK = {
|
|
|
|
'DEFAULT_AUTHENTICATION_CLASSES': ['rest_framework.authentication.BasicAuthentication'],
|
2021-02-18 17:13:17 +01:00
|
|
|
'EXCEPTION_HANDLER': 'chrono.api.utils.exception_handler',
|
2019-09-21 21:21:14 +02:00
|
|
|
}
|
2020-03-06 09:43:52 +01:00
|
|
|
|
|
|
|
DATABASES = {
|
|
|
|
'default': {
|
2023-03-15 14:13:36 +01:00
|
|
|
'ENGINE': 'django.db.backends.postgresql',
|
2020-03-06 09:43:52 +01:00
|
|
|
'TEST': {
|
2021-09-17 14:59:21 +02:00
|
|
|
'NAME': 'chrono-test-%s' % os.environ.get("BRANCH_NAME", "").replace('/', '-')[:45],
|
2020-03-06 09:43:52 +01:00
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
2020-07-08 16:07:55 +02:00
|
|
|
|
|
|
|
KNOWN_SERVICES = {
|
|
|
|
'wcs': {
|
|
|
|
'default': {
|
|
|
|
'title': 'test',
|
|
|
|
'url': 'http://example.org',
|
|
|
|
'secret': 'chrono',
|
|
|
|
'orig': 'chrono',
|
|
|
|
'backoffice-menu-url': 'http://example.org/manage/',
|
|
|
|
}
|
|
|
|
},
|
2022-06-07 15:20:20 +02:00
|
|
|
'lingo': {
|
|
|
|
'default': {
|
|
|
|
'title': 'test',
|
|
|
|
'url': 'http://lingo.example.org',
|
|
|
|
'secret': 'chrono',
|
|
|
|
'orig': 'chrono',
|
|
|
|
'backoffice-menu-url': 'http://example.org/manage/',
|
|
|
|
}
|
|
|
|
},
|
2020-07-08 16:07:55 +02:00
|
|
|
}
|
2020-02-20 11:46:23 +01:00
|
|
|
|
2022-04-20 17:50:57 +02:00
|
|
|
LEGACY_URLS_MAPPING = {'old.org': 'new.org'}
|
|
|
|
|
2020-02-20 11:46:23 +01:00
|
|
|
EXCEPTIONS_SOURCES = {}
|
2020-07-16 15:12:47 +02:00
|
|
|
|
|
|
|
SITE_BASE_URL = 'https://example.com'
|
2022-06-28 14:49:26 +02:00
|
|
|
|
|
|
|
SHARED_CUSTODY_ENABLED = True
|
2022-07-05 12:08:56 +02:00
|
|
|
|
|
|
|
PASSWORD_HASHERS = ["django.contrib.auth.hashers.MD5PasswordHasher"]
|