forked from danielgtaylor/malt.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.py
35 lines (28 loc) · 874 Bytes
/
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
import os
from os.path import dirname, join
try:
from secrets import *
except ImportError:
raise SystemExit('Please create a secrets.py based on secrets.py.template')
# Whether or not to show stack traces on errors
# By default this is automaticly true when running locally
# and false when in production
DEBUG = 'HTTP_HOST' in os.environ and os.environ['HTTP_HOST'].startswith('localhost') or False
# The physical root directory of this project
PROJECT_ROOT = dirname(__file__)
# The physical path to the HTML templates
TEMPLATE_PATH = join(PROJECT_ROOT, 'templates')
# Usernames that are not allowed
RESERVED_USERNAMES = [
'admin',
'administrator',
'root',
'super'
]
# A list of enabled providers. Possible options are defined in
# handlers/auth.py:AuthHandler.AUTH_URLS
AUTH_PROVIDERS = [
'google',
'facebook',
'windows_live'
]