forked from dimagi/commcare-hq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
localsettings.py.example
53 lines (41 loc) · 1.44 KB
/
localsettings.py.example
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
import os
# Postgres config
DATABASE_ENGINE = 'postgresql_psycopg2'
DATABASE_NAME = 'commcarehq'
DATABASE_USER = 'postgres'
DATABASE_PASSWORD = '*****'
DATABASE_HOST = ''
DATABASE_PORT = '5432'
DJANGO_LOG_FILE = "/var/log/datahq/datahq.django.log"
LOG_SIZE = 1000000
LOG_LEVEL = "DEBUG"
LOG_FILE = "/var/log/datahq/datahq.log"
LOG_FORMAT = "[%(name)s]: %(message)s"
LOG_BACKUPS = 256 # number of logs to keep
filepath = os.path.abspath(os.path.dirname(__file__))
STATIC_ROOT = os.path.join(filepath, 'staticmedia') #if you so wish to have your staticroot be defined here - this is necessary for staticfiles to merge all the static media from the management command.
####### Couch Forms ######
COUCH_SERVER_ROOT = 'localhost:5984'
COUCH_USERNAME = ''
COUCH_PASSWORD = ''
COUCH_DATABASE_NAME = 'commcarehq'
BITLY_LOGIN = 'dimagi'
BITLY_APIKEY = '*****'
EMAIL_LOGIN="[email protected]"
EMAIL_PASSWORD="******"
EMAIL_SMTP_HOST="smtp.gmail.com"
EMAIL_SMTP_PORT=587
JAR_SIGN = dict(
key_store = "/PATH/TO/KEY_STORE",
key_alias = "KEY",
store_pass = "*****",
key_pass = "*****",
)
# Link to XForm Editor
# in the future we will possible allow multiple
EDITOR_URL = 'http://localhost:8011/xep/initiate/'
XFORMPLAYER_URL = 'http://localhost:8888/play_remote/'
# A back door for phones that can't do SSL to access HQ through http
INSECURE_URL_BASE = "http://submit.mysite.com"
BUG_REPORT_RECIPIENTS = ['[email protected]']
PREVIEWER_RE = r'^.*@dimagi\.com$'