lingo/tests/settings.py

53 lines
1.4 KiB
Python

import os
TIME_ZONE = 'Europe/Paris'
LANGUAGE_CODE = 'en-us'
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
},
'dummy': {'BACKEND': 'django.core.cache.backends.dummy.DummyCache'},
}
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'TEST': {
'NAME': ('lingo-test-%s' % os.environ.get("BRANCH_NAME", "").replace('/', '-'))[:63],
},
}
}
KNOWN_SERVICES = {
'chrono': {
'default': {
'title': 'test',
'url': 'http://chrono.example.org',
'secret': 'lingo',
'orig': 'lingo',
'backoffice-menu-url': 'http://chrono.example.org/manage/',
'secondary': False,
},
'other': {
'title': 'other',
'url': 'http://other.chrono.example.org',
'secret': 'lingo',
'orig': 'lingo',
'backoffice-menu-url': 'http://other.chrono.example.org/manage/',
'secondary': True,
},
},
'wcs': {
'default': {
'title': 'test',
'url': 'http://example.org',
'secret': 'chrono',
'orig': 'chrono',
'backoffice-menu-url': 'http://example.org/manage/',
}
},
}
PASSWORD_HASHERS = ["django.contrib.auth.hashers.MD5PasswordHasher"]