-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsettings.py.default
More file actions
87 lines (68 loc) · 3.14 KB
/
settings.py.default
File metadata and controls
87 lines (68 loc) · 3.14 KB
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
# Django settings for smart_ui_server project.
APP_HOME = '{{path_to_smart_ui_server}}' # filesystem path to this installation
SMART_API_SERVER_BASE = '{{api_server_base_url}}' # the url:port where your SMART server is available
CONSUMER_KEY='{{chrome_consumer}}' # the OAuth cosumer key for chrome apps
CONSUMER_SECRET='{{chrome_secret}}' # OAuth consumer secret for chrome apps
# To allow admin interface, define admin users here and uncomment
# uncomment admin_ui in the INSTALLED_APPS list below.
# ADMIN_USER_ID = ('admin@smartplatforms.org',)
# Allows to define a list of apps that are not going to be listed in the UI
HIDDEN_APPS = [
'secretapp@apps.smartplatforms.org'
]
DATABASE_ENGINE = 'postgresql_psycopg2' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
DATABASE_NAME = 'smart-ui' # Or path to database file if using sqlite3.
DATABASE_USER = 'smart' # Not used with sqlite3.
DATABASE_PASSWORD = '{{db_password}}' # Not used with sqlite3.
HIDE_GET_MORE_APPS = False
DEBUG = True
DEBUG_PROPAGATE_EXCEPTIONS = True
# Make this unique, and don't share it with anybody. (Used by django for CSRF protection?)
SECRET_KEY = '{{django_secret_key}}'
# Proxy user configuration for full screen apps, showcase, etc
#PROXY_USER = "proxyuser@smartplatforms.org"
#PROXY_PASSWORD = "password"
# quick and dirty private labeling (commend it out if not needed)
BRANDING = {
'short_name': 'smart',
'pretty_name': '{{pretty_name_value}}', # for example: 'Reference EMR'
'pretty_name_prepend': 'SMART',
'version': 'version 0.6.2',
'header_template': 'ui/header.html',
'footer_template': 'ui/footer.html'
}
# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# If running in a Windows environment this must be set to the same as your system time zone.
TIME_ZONE = 'UTC'
# Language code for this installation. All choices can be found here:
# http://www.i18nguy.com/unicode/language-identifiers.html
LANGUAGE_CODE = 'en-us'
SITE_ID = 1
# If you set this to False, Django will make some optimizations so as not to load the internationalization machinery.
USE_I18N = True
# List of callables that know how to import templates from various sources.
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.load_template_source',
'django.template.loaders.app_directories.load_template_source'
)
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'smart_ui_server.middlewares.reseed_random.ReseedRandom',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
)
ROOT_URLCONF = 'smart_ui_server.urls'
CONCURRENT_THREADING = False
INSTALLED_APPS = (
'django_concurrent_test_server',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'ui',
# to enable admin ui, uncomment the line below.
# 'admin_ui',
)
# use file based sessions for now - fixme: security?
SESSION_ENGINE = 'django.contrib.sessions.backends.file'
SESSION_FILE_PATH = APP_HOME + "/session"