forked from ichuan/djblog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlocal_settings.default.py
62 lines (49 loc) · 1.22 KB
/
local_settings.default.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/usr/bin/env python
# coding: utf-8
# yc@2011/08/26
import os
# 时区
TIME_ZONE = 'Asia/Shanghai'
# 语言
LANGUAGE_CODE = 'zh-cn'
# 邮箱(报错时发送)
EMAIL = 'iyanchuan@gmail.com'
# 数据库信息
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql', # mysql 可以改成 'postgresql_psycopg2', 'postgresql', 'sqlite3' or 'oracle'.
'NAME': 'djblog', # 数据库名
'USER': 'root', # sqlite3 不使用此配置
'PASSWORD': 'root', # sqlite3 不使用此配置
'HOST': '',
'PORT': '',
}
}
# 主题
THEME = 'classic'
# 站点名称
SITE_TITLE = 'ichuan.net'
# 副标题
SITE_SUBTITLE = u'All about yc'
# 作者
SITE_AUTHOR = 'yc'
# 描述
SITE_DESC = 'yc\'s personal site'
# 分页大小
PER_PAGE = 5
# recent 个数
RECENT_COUNT = 5
# google 统计的 id
GA_ID = 'UA-15372596-1'
# google custom search id, see http://www.google.com/cse/
CSE_ID = '017823656936221718810:8oexw_fkbz0'
# disqus 评论 id
DISQUS_SHORTNAME = 'ycsblog'
#### 以下配置不要改动 ####
TEMPLATE_DIRS = (
os.path.join(os.path.dirname(__file__), 'templates/' + THEME),
)
ADMINS = (
('admin', EMAIL),
)
MANAGERS = ADMINS