-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.py
34 lines (27 loc) · 870 Bytes
/
config.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
import os
from authomatic.providers import oauth2
# Your registered OAuth information gets filled in here.
AUTH_SERVICES = {
'google': {
'id': 1,
'class_': oauth2.Google,
'consumer_key': 'TODO',
'consumer_secret': 'TODO',
'scope': oauth2.Google.user_info_scope + ['https://www.googleapis.com/auth/calendar'],
'offline': True,
}
}
# Generate secure values for use in encrypting cookies.
AUTH_SECRET = 'TODO'
COOKIE_SECRET = 'TODO'
# The ROOT_URL should be set to the full, public path to your instance
# (eg. https://www.hashtagtodo.com).
ROOT_URL = 'TODO'
USER_AGENT = 'hashtagtodo-v1'
# Set emails used for automation.
EMAILS = {
'alerts': 'HashtagTodo Alerts <TODO>',
'support': 'HashtagTodo Support <TODO>',
}
def is_prod():
return not os.environ['SERVER_SOFTWARE'].startswith('Development')