-
Notifications
You must be signed in to change notification settings - Fork 2
/
local_settings.sample.py
60 lines (54 loc) · 1.64 KB
/
local_settings.sample.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
import os
# This will be the AE (DICOM Application Entity) of the DICOM server started on
# this computer to receive the identified DICOM files from the staging PACS
LOCAL_AE = "DCMQR"
# The AE of your staging PACS
STAGE_AE = "DCM4CHEE"
# The AE of your production PACS
PROD_AE = "DCM4CHEE"
# IP address of this machine. Must be reachable from your staging PACS
LOCAL_HOST = ""
# IP address or hostname of your staging PACS
STAGE_HOST = ""
# IP address or hostname of your production PACS
PROD_HOST = ""
# DICOM ports for your local receiving server, staging PACS, and production
# PACS. Should not have to change unless you use non-standard PACS setup
DEFAULT_PORT = 11112
STAGE_PORT = DEFAULT_PORT
PROD_PORT = DEFAULT_PORT
LOCAL_PORT = DEFAULT_PORT
# DICOM root to be used when anonymizing DICOM files.
DICOM_ROOT = ""
# Pipeline Hooks
# Name of hook registed to run after the anonymization but before pushing to production
POST_ANON_HOOK = "simple"
######### Django settings
INSTALLED_APPS = (os.path.split(os.path.split(__file__)[0])[1],)
# Define your staging database parameters here
staging_database = {
'ENGINE': '',
'NAME': '',
'USER': '',
'PASSWORD': '',
'HOST': '',
'PORT': '',
}
DATABASES = {
'default': staging_database,
# define your production database parameters here.
# this will only be used if you manually execute the copytoprod.py script
'production': {
'ENGINE': '',
'NAME': '',
'USER': '',
'PASSWORD': '',
'HOST': '',
'PORT': '',
},
'staging': staging_database
}
DATABASE_ROUTERS = (
'routers.ProductionDataRouter',
'routers.StagingDataRouter',
)