chrono/tests/settings.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

50 lines
1.2 KiB
Python
Raw Normal View History

import os
TIME_ZONE = 'Europe/Paris'
2016-02-13 09:56:55 +01:00
LANGUAGE_CODE = 'en-us'
REST_FRAMEWORK = {
'DEFAULT_AUTHENTICATION_CLASSES': ['rest_framework.authentication.BasicAuthentication'],
2021-02-18 17:13:17 +01:00
'EXCEPTION_HANDLER': 'chrono.api.utils.exception_handler',
}
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'TEST': {
2021-09-17 14:59:21 +02:00
'NAME': 'chrono-test-%s' % os.environ.get("BRANCH_NAME", "").replace('/', '-')[:45],
},
}
}
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/',
}
},
'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
}
LEGACY_URLS_MAPPING = {'old.org': 'new.org'}
EXCEPTIONS_SOURCES = {}
SITE_BASE_URL = 'https://example.com'
SHARED_CUSTODY_ENABLED = True
PASSWORD_HASHERS = ["django.contrib.auth.hashers.MD5PasswordHasher"]