-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathcircleci_settings.py
48 lines (36 loc) · 1.27 KB
/
circleci_settings.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# import warnings
from pathlib import Path
# from django.utils import deprecation
from creme.settings import * # NOQA
from creme.settings import CREME_ROOT, INSTALLED_APPS
SECRET_KEY = 'CircleCi-Secret-Key'
BASE_DIR = Path(__file__).resolve().parent
# LANGUAGE_CODE = 'fr'
TIME_ZONE = 'Europe/Paris'
INSTALLED_APPS.extend([
'django_extensions',
'creme.sms', # Work In Progress
'creme.cti',
'creme.polls', # Need 'commercial'
'creme.mobile',
])
GENERATED_MEDIA_NAMES_FILE = BASE_DIR / '_generated_media_names.py'
# NB: "creme_project" same name in config.yml
GENERATED_MEDIA_NAMES_MODULE = 'creme_project._generated_media_names'
MEDIA_ROOT = BASE_DIR / 'media' / 'upload'
STATIC_ROOT = BASE_DIR / 'media' / 'static'
# JOBMANAGER_BROKER = 'redis://@localhost:6379/0'
GEOLOCATION_TOWNS = [
(
Path(CREME_ROOT) / 'geolocation' / 'tests' / 'data' / 'test.towns.france.csv.zip',
{'country': 'France'}
),
]
# TODO? (many USE_i18N use are annoying)
# # Transform some warnings into errors
# warnings.filterwarnings(action='error', category=deprecation.RemovedInNextVersionWarning)
# warnings.filterwarnings(action='error', category=deprecation.RemovedAfterNextVersionWarning)
try:
from .local_settings import * # NOQA
except ImportError:
pass