forked from ph1l/ocemr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.py.DIST
147 lines (127 loc) · 3.37 KB
/
settings.py.DIST
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
#
# OCEMR - settings.py
#
# This is the main django settings file and must be valid python.
#
# DATABASES
DATABASES = { }
# sqlite3 example
#DATABASES = {
# 'default': {
# 'ENGINE': 'django.db.backends.sqlite3',
# 'NAME': '/home/phil/var/lib/ocemr.db',
# 'USER': '',
# 'PASSWORD': '',
# 'HOST': '',
# 'PORT': '',
# }
# mysql example
#DATABASES = {
# 'default': {
# 'ENGINE': 'django.db.backends.mysql',
# 'NAME': 'ocemr',
# 'USER': 'ocemr',
# 'PASSWORD': 'password',
# 'HOST': '',
# 'PORT': '',
# }
# }
# DB_BACKUP_*
#
# To Encrypt Backups, you need to:
#
# 1). Generate a server key:
#
# $ sudo /usr/share/ocemr/util/setup_gpg_server_key.sh
#
# 2). Set DB_BACKUP_ENCRYPT to "True".
#
# TODO: document adding a personal key to the server keyring.
DB_BACKUP_ENCRYPT=False
DB_BACKUP_ENCRYPT_TO=[ "ocemr@localhost" ]
#
# DEBUG -
# Set DEBUG = True in development
#
DEBUG = False
TEMPLATE_DEBUG = DEBUG
# ADMINS-
# Set name and email addresses of administrators. Site error reports
# get emailed here.
ADMINS = (
# ('Your Name', '[email protected]'),
)
MANAGERS = ADMINS
# SERVER_EMAIL -
# Address from which the server sends email.
SERVER_EMAIL = '[email protected]'
# *_PATH -
# Location the software is installed.
#
APP_PATH="/usr/share/ocemr/apps/ocemr"
CONTRIB_PATH="/usr/share/ocemr/contrib"
UTIL_PATH="/usr/share/ocemr/util"
VAR_PATH="/var/lib/ocemr"
#
# OCEMR PRINTER SETTINGS
#
# PRINTER_NAME -
# Local CUPS printer name for printing records
#
# PAPER_SIZE -
# Paper Size. 'letter' or 'A4'
#
PRINTER_NAME = "Some_CUPS_Printer"
PAPER_SIZE = "Letter"
# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# although not all choices may be available on all operating systems.
# If running in a Windows environment this must be set to the same as your
# system time zone.
TIME_ZONE = 'America/Chicago'
# Make this unique, and don't share it with anybody.
#
# python -c 'import random; print "".join([random.choice("abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)") for i in range(50)])'
#
SECRET_KEY = '5!&)hu8!_=l-*y2gwm9z9z&qro+m7%wswqpzk1)hlt_nxi)k_x'
##############################################################################
#
# Settings beyond this point should, in most cases, be left untouched.
#
##############################################################################
# Session Security
#
SESSION_EXPIRE_AT_BROWSER_CLOSE = True
USE_L10N = True
# LANGUAGE_CODE = 'en-us'
SITE_ID = 1
USE_I18N = True
MEDIA_ROOT = ''
MEDIA_URL = ''
ADMIN_MEDIA_PREFIX = '/media/admin/'
TEMPLATE_CONTEXT_PROCESSORS = (
"django.core.context_processors.debug",
"django.core.context_processors.i18n",
"django.core.context_processors.request",
"django.contrib.auth.context_processors.auth",
)
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
)
ROOT_URLCONF = 'ocemr.urls'
FORMAT_MODULE_PATH='ocemr.formats'
TEMPLATE_DIRS = ()
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
'django.contrib.admindocs',
'ocemr',
)
import version
OCEMR_VERSION=version.OCEMR_VERSION