-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.py.template
42 lines (37 loc) · 1.29 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
# COPY THIS FILE TO settings.py
# Secret key used for Flask sessions and such
# Can be any randomized string, reccomend generateing one with os.urandom(24)
secret_key = ''
# Application Logging
LOG_FILE = 'error.log'
LOG_FORMAT = '%(asctime)s [%(levelname)s] {%(filename)s:%(lineno)d} %(message)s'
LOG_LEVEL = 'INFO'
LOG_MAX_BYTES = 1024 * 1024 * 5 # 5 MB
LOG_BACKUP_COUNT = 1
# Config object settings
# See config.py other environments and options
configClass = 'config.DevelopmentConfig'
# Configuration for
PYLTI_CONFIG = {
'consumers': {
# "key" value here can be changed to whatever you'd like your key to be
# the "secret" on the right is the one to chagne
# do not change the left "secret"
# feel free to add more key/secret pairs for other conusmers
"key": {
"secret": "secret"
}
},
'roles': {
# Maps values sent in the lti launch value of "roles" to a group
# Allows you to check LTI.is_role('admin') for your user
'admin': ['Administrator', 'urn:lti:instrole:ims/lis/Administrator'],
'student': ['Student', 'urn:lti:instrole:ims/lis/Student']
}
}
# Store application wide settings here
# For example: we could store our app's api keys for canvas
#
# CANVAS_API_URL = ''
# CANVAS_API_KEY = ''
#