forked from ScenK/Dev_Blog2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py.sample
More file actions
50 lines (45 loc) · 1.97 KB
/
config.py.sample
File metadata and controls
50 lines (45 loc) · 1.97 KB
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
# -*- coding: utf-8 -*-
import random
class Config(object):
DEBUG = False
MONGODB_SETTINGS = {'DB': 'dev_blog2'}
SECRET_KEY = 'lask+mongoengine=<3'
MAIN_TITLE = u'Sea_Kudo的博客'
SITE_URL = 'http://tuzii.me'
KEYWORDS = u'前端开发, 互联网, 技术博客, 个人博客, 生活记录'
DESCRIPTION = u'并不是所有唯美的故事 都伴有精彩的风景. 我只愿尽我所能 带你看遍整个春夏秋冬.'
EMAIL = 'he.kang@dev-engine.com'
class ProductionConfig(Config):
SECRET_KEY = ''
FRONTEND_MIN_JS = '/static/js/frontend.min.js?v=%s' % random.choice(xrange(100))
FRONTEND_MIN_CSS = '/static/css/frontend.min.css?v=%s' % random.choice(xrange(100))
ERROR_MIN_JS = '/static/js/404.min.js?v=%s' % random.choice(xrange(100))
ERROR_MIN_CSS = '/static/css/404.min.css?v=%s' % random.choice(xrange(100))
ADMIN_MIN_JS = '/admin/static/js/backend.min.js?v=%s' % random.choice(xrange(100))
ADMIN_MIN_CSS = '/admin/static/css/admin.min.css?v=%s' % random.choice(xrange(100))
ANALYTICS = '''<script type="text/javascript">
</script>
'''
class DevelopmentConfig(Config):
DEBUG = True
DEBUG_TB_PANELS = (
'flask.ext.debugtoolbar.panels.versions.VersionDebugPanel',
'flask.ext.debugtoolbar.panels.timer.TimerDebugPanel',
'flask.ext.debugtoolbar.panels.headers.HeaderDebugPanel',
'flask.ext.debugtoolbar.panels.request_vars.RequestVarsDebugPanel',
'flask.ext.debugtoolbar.panels.template.TemplateDebugPanel',
'flask.ext.debugtoolbar.panels.logger.LoggingPanel',
'flask.ext.mongoengine.panels.MongoDebugPanel'
)
DEBUG_TB_INTERCEPT_REDIRECTS = False
SITE_URL = 'http://vm.tuzii.me'
class SmtpConfig(Config):
SERVER = 'smtp.gmail.com'
PORT = 587
USER = 'no-reply@dev-engine.com'
PASSWORD = ''
class UpyunConfig(Config):
URL = ''
BUCKET = ''
ADMIN = ''
PASSWORD = ''