-
Notifications
You must be signed in to change notification settings - Fork 0
/
local_settings.py
85 lines (72 loc) · 2.35 KB
/
local_settings.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
import os
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
## rtc login information
rtc_url = ''
rtc_user = ''
rtc_pass = ''
## when reporting, show # of changesets before and after for each stream
levelinterval = 10
## when reporting, show this range of changesets for each stream
levelrange = []
## only handle subset of streams, [] indicated to handle all
streams = []
## email settings
MAIL_FROM = '[email protected]'
MAIL_ADMIN = ['[email protected]',]
EMAIL_HOST = 'localhost'
EMAIL_PORT = 25
EMAIL_HOST_USER = ''
EMAIL_HOST_PASSWORD = ''
EMAIL_USE_TLS = False
EMAIL_USE_SSL = False
EMAIL_SSL_CERTFILE = None
EMAIL_SSL_KEYFILE = None
## remote git repository to push migrated and verified streams (optional, everything is in local)
GIT_REMOTE_REPO = ''
## command used for rtc querys
SCMCOMMAND = 'lscm'
## use history file got from gui for needed streams
USE_HISTORY_FILE = True
## do stream based migration
STREAM_BASED = True
## set some limits so that we constantly push to git repository and force load rtc workspaces
PUSHLIMIT = 50
FORCELOAD = 100
## update this to provide intial creator information
COMPONENT_CREATORS = {
"user name 1": '[email protected]', # who created the component 1
"user name 2": '[email protected]', # who created the component 2
"user name 3": '[email protected]', # who created the component 3
}
## if you need some special treatment with a component
COMPONENT_STREAM = {
"component_name": {
"starting_baseline": 'baseline_uuid',
"streams_only": ["stream_name_1", "stream_name_2"],
"streams_exclude": ["stream_name_3", "stream_name_4"],
},
}
### streams that is not needed or has issues migration, exclude first
COMPONENT_STREAM_EXCLUDES = {
"component_name": ["stream_name_1", "stream_name_2"],
}
## aggressively squash changesets that created previous than deliver time
## if aggresive, it squashes regarding to the changeset creation time only, this will produce more squashes but fast
## normally, try to accept / discard cycle and this will reduce squashes.
CHANGESET_SQUASH_POLICY_AGGRESIVE = True
CHANGESET_SQUASH_TRY_BEST_LIMIT = 100
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
},
# 'default': {
# 'ENGINE': 'django.db.backends.mysql',
# 'NAME': 'utopia',
# 'CONN_MAX_AGE': 10800,
# 'HOST': 'localhost',
# 'USER': 'root',
# 'PASSWORD': '',
# 'PORT': '',
# }
}