forked from cula/jingan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.py
45 lines (32 loc) · 771 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
36
37
38
39
40
41
42
43
44
45
# coding=utf-8
import os
import pytz
debug = True
port = 8000
tz = pytz.UTC
# Please define your mongodb config in my_conf.py
database = {
# 'name': 'your_db_name',
'host': '127.0.0.1',
'port': 27017
}
handler_packages = [
'handlers',
]
project_root = os.path.dirname(os.path.abspath(__file__))
template_root = os.path.join(project_root, 'templates/')
# Pagination
default_active_page = 1
default_count_per_page = 20
default_page_range_length = 3
auth_cookie_name = 'user'
auth_login_url = '/auth/login'
auth_logout_url = '/auth/logout'
static_root = os.path.join(project_root, 'static')
static_url = '/static/'
cookie_secret = "56f11205eceb0d197e457eb75f9a42b5"
try:
import my_conf
database.update(my_conf.database)
except:
pass