-
Notifications
You must be signed in to change notification settings - Fork 16
/
settings.py.template
52 lines (45 loc) · 1.76 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
# COPY THIS FILE TO settings.py
import os
# Using a placeholder for environment variables.
# If not found in the environment, it will default to the local value, which is set in
# the second parameter. Example:
# os.environ.get("ENVIRONMENT_KEY", "LOCAL_VALUE")
# This makes it a bit easier to use one file for local and environment deployment.
# Declare your consumer key and shared secret. If you end
# up having multiple consumers, you may want to add separate
# key/secret sets for them.
CONSUMER_KEY = os.environ.get("CONSUMER_KEY", "CHANGEME")
SHARED_SECRET = os.environ.get("SHARED_SECRET", "CHANGEME")
# Configuration for LTI
PYLTI_CONFIG = {
'consumers': {
CONSUMER_KEY: {
"secret": SHARED_SECRET
}
# Feel free to add more key/secret pairs for other consumers.
},
'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']
}
}
# Secret key used for Flask sessions, etc. Must stay named 'secret_key'.
# Can be any randomized string, recommend generating one with os.urandom(24)
secret_key = os.environ.get("SECRET_FLASK", "CHANGEME")
# 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'
# Store application wide settings here
# For example: we could store our app's api keys for canvas
#
# CANVAS_API_URL = ''
# CANVAS_API_KEY = ''
#