-
-
Notifications
You must be signed in to change notification settings - Fork 218
/
localsettings.example.py
100 lines (85 loc) · 2.43 KB
/
localsettings.example.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
from dev_settings import *
####### Database config #######
USE_PARTITIONED_DATABASE = False
# example partitioned DB set up
if USE_PARTITIONED_DATABASE:
DATABASES.update({
'proxy': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'commcarehq_proxy',
'USER': 'commcarehq',
'PASSWORD': 'commcarehq',
'HOST': 'localhost',
'PORT': '5432',
'TEST': {
'SERIALIZE': False,
},
'PLPROXY': {
'PROXY': True
}
},
'p1': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'commcarehq_p1',
'USER': 'commcarehq',
'PASSWORD': 'commcarehq',
'HOST': 'localhost',
'PORT': '5432',
'TEST': {
'SERIALIZE': False,
},
'PLPROXY': {
'SHARDS': [0, 1],
}
},
'p2': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'commcarehq_p2',
'USER': 'commcarehq',
'PASSWORD': 'commcarehq',
'HOST': 'localhost',
'PORT': '5432',
'TEST': {
'SERIALIZE': False,
},
'PLPROXY': {
'SHARDS': [2, 3],
}
},
})
# Modify this value if you are deploying multiple environments of HQ to the same machine.
# Identify the target type of this running environment
SERVER_ENVIRONMENT = 'changeme'
####### Less/Django Compressor ########
COMPRESS_ENABLED = False
COMPRESS_OFFLINE = False
####### Misc / HQ-specific Config ########
# Set to something like "192.168.1.5:8000" (with your IP address) to enable submitting
# data to your local environment from an android phone.
# See corehq/apps/builds/README.md for more information.
BASE_ADDRESS = 'localhost:8000'
PREVIEWER_RE = r'^.*@dimagi\.com$'
MAPS_LAYERS = {
'Maps': {
'family': 'mapbox',
'args': {
'apikey': '*****'
}
},
'Satellite': {
'family': 'mapbox',
'args': {
'apikey': '*****'
}
},
}
LOCAL_APPS += (
# 'debug_toolbar', # Adds a retractable panel to every page giving profiling & debugging info
)
LOCAL_MIDDLEWARE = [
# 'debug_toolbar.middleware.DebugToolbarMiddleware',
]
LOCAL_PILLOWTOPS = {
# 'my_pillows': ['some.pillow.Class', ],
# 'and_more': []
}