forked from peterbe/tornado_gists
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.py
32 lines (25 loc) · 789 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
import os
_ROOT = os.path.dirname(__file__)
TITLE = u"Tornado Gists"
SUB_TITLE = "explaining Tornado on gist at a time"
DOMAIN_NAME = "TornadoGists.org"
APPS = (
'main',
'gists',
'voting',
)
LOGIN_URL = "/auth/login/"
COOKIE_SECRET = "Y2o1TzK2YQAGEYdkL5gmueJIFuY37EQm92XsTo1v/Wi="
WEBMASTER = '[email protected]'
ADMIN_EMAILS = ['[email protected]', '[email protected]']
DEFAULT_DATABASE_NAME = 'tornadogists'
OAUTH_SETTINGS = {
'client_id': '505fee7706f024a2bcc1',
'client_secret': open(os.path.join(_ROOT, 'github_client_secret')).read().strip(),
'base_url': 'https://github.com/login/oauth/',
'redirect_url': 'http://tornadogists.org/auth/github/' # can this be localhost:8000/...?
}
try:
from local_settings import *
except ImportError:
pass