forked from wcmbishop/moniteur
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmoniteur_settings.py
81 lines (64 loc) · 1.78 KB
/
moniteur_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
# settings.py
# =================================================
# This script is for defining global parameters,
# such as database connection parameters.
#
# =================================================
# -----------------
# TABLEAU_DB
# -----------------
# These are connection details for the actual Tableau
# PostgreSQL database from which infractions are identified.
TABLEAU_DB = {'dbname': 'workgroup',
'user': '',
'password': '',
'host': '',
'port': 8060}
# -----------------
# MONITEUR_DB
# -----------------
# These are connection details for the MySQL database
# where all moniteur data is stored.
MONITEUR_DB = {'NAME': '',
'USER': '',
'PASSWORD': '',
'HOST': '',
'PORT': ''}
# -----------------
# TABLEAU_API
# -----------------
# These are connection details for establishing
# a Tableau REST API connection.
TABLEAU_API = {'server': '',
'user': '',
'password': '',
# Workbook archive directory
'archive_dir': 'archive/dir/...'}
# -----------------
# TABLEAU_URLS
# -----------------
# URL prefixes for use in emails.
TABLEAU_SERVER = 'http://tableau.server.com'
TABLEAU_URLS = {'workbook': 'http://',
'datasource': 'http://'}
# -----------------
# SMTP
# -----------------
# SMTP parameters for sending emails
# via the warning system.
SMTP = {'server': '',
'port': 25,
'username': '',
'pass': '',
'sender': ''}
# -----------------
# EMAIL GREETINGS
# -----------------
GREETINGS = ['Howdy!',
'Greetings!',
'Hello!',
'Hey there!',
'Ahoy!',
'Yo!',
'Bienvinidos!',
'Hi!']