forked from chb/indivo_ui_server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.py.default
76 lines (69 loc) · 2.77 KB
/
settings.py.default
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
# the two places where we point to apps are:
# 1. in TEMPLATE_DIRS
# 2. through hardcoded URL routes in the file ref'd by ROOT_URLCONF
SERVER_ROOT_DIR = '/web/indivo_ui_server'
INDIVO_SERVER_LOCATION = 'http://localhost:8000'
INDIVO_UI_SERVER_BASE = 'http://localhost:80'
# we need to put absolute paths here for the UI server's template AND
# each app's /jmvc/ directory otherwise the UI server will not load the jmvc
# start page. The django.template.loaders.app_directories.Loader is no help
# to us since it looks for a statically named /templates/ directory.
TEMPLATE_DIRS = (
SERVER_ROOT_DIR + "/templates",
SERVER_ROOT_DIR + '/apps/allergies/jmvc/',
SERVER_ROOT_DIR + '/apps/immunizations/jmvc/',
SERVER_ROOT_DIR + '/apps/labs/jmvc/',
SERVER_ROOT_DIR + '/apps/medications/jmvc/',
# SERVER_ROOT_DIR + '/apps/problems/templates',
SERVER_ROOT_DIR + '/apps/' # the problems app is a non-jmvc app and has a different template path
)
DEBUG = True
TEMPLATE_DEBUG = True
HIDE_GET_MORE_APPS = False
HIDE_SHARING = False
CONSUMER_KEY='chrome'
CONSUMER_SECRET='chrome'
ROOT_URLCONF = 'urls'
# allow to signup via web?
REGISTRATION = {
'enable': True, # True or False
'set_primary_secret': 1, # 0 or 1. If 0, administrators will have to approve accounts. If set to 1, make sure the server has SEND_MAIL enabled!
'set_secondary_secret': 1, # 0 or 1. Can only be 1 if primary is also 1
'min_password_length': 8,
'autocreate_record': True # if True creates a first record based on account name and email automatically
}
# allow user to add records?
ALLOW_ADDING_RECORDS = False
# quick and dirty private labeling (optional)
# BRANDING = {
# 'short_name': 'gpp',
# 'pretty_name': 'Gene Partnership',
# 'pretty_name_prepend': 'The',
# 'header_template': 'ui/header_gpp.html',
# 'footer_template': 'ui/footer_gpp.html',
# 'logo_image_src': '/jmvc/ui/resources/images/branding/gpp_three_loop_96x31.png',
# 'logo_image_big_src': '/jmvc/ui/resources/images/branding/gpp_three_loop_big.png'
# }
TIME_ZONE = 'UTC'
SESSION_COOKIE_NAME = "indivo_ui_sessionid"
LANGUAGE_CODE = 'en-us'
SITE_ID = 1
USE_I18N = True
SECRET_KEY = 'REPLACEMENOW'
# don't forget comma here. just love the python tuple!
TEMPLATE_LOADERS = ('django.template.loaders.filesystem.load_template_source',)
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
)
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'ui'
)
# use file based sessions for now - fixme: security?
SESSION_ENGINE = 'django.contrib.sessions.backends.file'
SESSION_FILE_PATH = SERVER_ROOT_DIR + "/sessions"