- DEBUG
生产环境选择False 测试环境选择True
- SECRET_KEY
安全密钥,可通过下面方法生成:
>>> import os >>> os.urandom(24) b'\xdfr\xff\xd1\xbcO\xc1\xa9_\xcb\x18\x04\xa6ZVJ\xf8\xd26]\x07_HE'
- SECURITY_PASSWORD_SALT
加盐,主要用于生成邮箱验证url
- REMEMBER_COOKIE_DURATION, PERMANENT_SESSION_LIFETIME
设置记住我之后cookies保存时间 使用 datetime.timedelta(days=3)
- PER_PAGE
设置每页显示多少条主题
- 定制缓存
CACHE_REDIS_HOST = '127.0.0.1' CACHE_REDIS_PORT = '6379' CACHE_REDIS_PASSWORD = '' CACHE_REDIS_DB = 1 CACHE_DEFAULT_TIMEOUT = 60 CACHE_KEY_PREFIX = 'cache:'
- SERVER_NAME
设置域名,本地测试使用
SERVER_NAME = 'localhost …
Tags
life
17
poem
7
linux
65
fedora
2
Life
5
nvidia
1
git
2
C51
3
vim
2
随意写写
7
转载
2
python
49
flask
24
pelican
4
centos
1
shadowsocks
1
sql
5
postgresql
3
sqlite
1
vps
1
ssl
1
nginx
2
pillow
1
验证码
1
python3
2
supervisor
1
web
3
redis
2
ajax
1
jquery
2
markdown
1
wtforms
1
arch
1
jinja2
2
fabric
1
sqlalchemy
7
datetime
1
archlinux
4
md5
1
steam
1
emacs
16
logging
1
wireshark
1
加密解密
1
security
2
virtualbox
3
i3wm
3
restful
1
time
1
串口
1
单片机
1
Linux
2
pip
2
pip3
1
tar
1
honmape
1
config
1
装饰器
1
os
1
thunar
1
job
1
流浪
1
regex
1
netease
2
token
1
json
1
org-mode
1
毕业设计
2
py3status
1
gist
1
coding
3
agetty
1
earth
2
naruto
1
生活随笔
1
himawari8
1
回忆
1
随笔
1
whoosh
1
elisp
4
vue
1
html
1
javescript
1
诗
1
celery
1
ftp
1
tornado
2
ansible
3
lua
2
date
1
travel
2
log
1
docker
1
golang
1
i18n
1
devops
2
elasticsearch
1
javascript
1
css
1