-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsample.settings.py
73 lines (61 loc) · 1.48 KB
/
sample.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
LEGACY_DATABASE = {
'db': 'daiquiri_web',
'user': '',
'password': '',
'host': '',
'port': 3306
}
DJANGO_DATABASE = {
'db': 'daiquiri_app',
'user': '',
'password': '',
'host': '',
'port': 3306
}
WORDPRESS_DATABASE = {
'db': 'daiquiri_wp',
'user': '',
'password': '',
'host': '',
'port': 3306
}
# custom user detail keys
AUTH_DETAIL_KEYS = ['affiliation']
# date to be used as date_joined for all users
DATE_JOINED = '2018-04-01T00:00:00Z'
# date to be used for contact messages without a date
DEFAULT_CONTRACT_MESSAGE_DATE = '2015-01-01'
# query language for the query examples
QUERY_EXAMPLE_LANGUAGE = 'mysql'
# query language for the query jobs
QUERY_JOB_LANGUAGE = 'postgresql'
# map status -> phase (direct query)
# QUERY_JOB_PHASES = {
# 1: 'COMPLETED', # success
# 2: 'ERROR', # timeout
# 3: 'ARCHIVED' # removed
# }
# map status -> phase (qqueue)
# QUERY_JOB_PHASES = {
# 0: 'QUEUED', # queued
# 1: 'EXECUTING', # running
# 2: 'ARCHIVED', # removed
# 3: 'ERROR', # error
# 4: 'COMPLETED', # success
# 5: 'ERROR', # timeout
# 6: 'ABORT' # killed
# }
# map type_id -> job_type
QUERY_JOB_TYPES = {
1: 'INTERFACE', # web
2: 'ASYNC' # uws
}
# replacements for the user schema
QUERY_USER_SCHEMA_REPLACEMENTS = (
('foo_user_', 'bar_user_'),
)
# replacements for the query string
QUERY_STRING_REPLACEMENTS = (
('`', '"'),
('log10', 'log'),
)