-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsettings.py.template
63 lines (50 loc) · 1.61 KB
/
settings.py.template
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
# Title of the tool. Appears in the <title> element, headers, and configuration XML
TOOL_TITLE = "Faculty Tools"
# Which theme directory to use. Leave blank for default.
THEME_DIR = ""
# Canvas instance URL. ex: https://example.instructure.com/
BASE_URL = "https://example.instructure.com/"
API_URL = BASE_URL + "api/v1/"
# Secret key to sign Flask sessions with. KEEP THIS SECRET!
secret_key = ""
# LTI consumer key and shared secret
CONSUMER_KEY = "key"
SHARED_SECRET = "secret"
# Configuration for pylti library. Uses the above key and secret
PYLTI_CONFIG = {
"consumers": {
CONSUMER_KEY: {
"secret": SHARED_SECRET
}
},
# Custom configurable roles
"roles": {
"staff": [
"urn:lti:instrole:ims/lis/Administrator",
"Instructor",
"ContentDeveloper",
"urn:lti:role:ims/lis/TeachingAssistant",
]
},
}
# The "Oauth2 Redirect URI" that you provided to Instructure.
oauth2_uri = "" # ex. 'https://localhost:5000/oauthlogin'
# The Client_ID Instructure gave you
oauth2_id = ""
# The Secret Instructure gave you
oauth2_key = ""
# Logging configuration
LOG_MAX_BYTES = 1024 * 1024 * 5 # 5 MB
LOG_BACKUP_COUNT = 2
ERROR_LOG = "logs/faculty-tools.log"
whitelist = "whitelist.json"
# Google Analytics Tracking ID (optional)
GOOGLE_ANALYTICS = ""
def select_db(x):
return {
"DevelopmentConfig": "sqlite:///test.db",
"Config": "sqlite:///test.db",
"BaseConfig": "sqlite:///test.db",
"TestingConfig": "sqlite:///test.db",
}.get(x, "sqlite:///test2.db")
configClass = "config.DevelopmentConfig"