项目地址: https://github.com/lt94/peach-blog.git
开发这个目的就是,方便自己可以在 hexo 搭建的静态博客来回切换
pip install -r requirements.txt
before you execute following lines,make sure you have already create database
flask shell
you'are supposed to see, something like follow one:
Python 3.6.5
App: app [development]
Instance: path\to\instance
then
>>> from app import db
>>> db.create_all()
# create super user
>>> from app.models import User
>>> user = User(user_name='your name',password='your password', level=1)
>>> db.session.add(user)
>>> db.session.commit()
if you want to export hexo posts into database, change the value of config.py on line 14 (where the hexo's posts store),then
flask hexo g
clean the posts,just use flask hexo c simplely
flask run
login in peach-blog admin, and step into post list pages, and then (see the picture)
the expoted post will generate under the directory where you set in config.py
测试网址: http://132.232.71.126 测试账户: test/test, 没有修改,新增权限
还有命令行导出功能,rss 等功能待开发
1
tulanxiaoxin 2018-12-04 16:45:29 +08:00
文章的字是真的大
|
2
xi2008wang 2018-12-04 16:47:44 +08:00
不错
|
3
leetao94 OP @tulanxiaoxin 怕看不清楚,哈哈😄
|
4
leetao94 OP @xi2008wang 谢谢~哈哈
|
5
liuxu 2018-12-04 16:56:58 +08:00
哈哈,右边的小球很好玩
|
6
hlwjia 2018-12-04 16:57:47 +08:00
支持
|
9
QQ2171775959 2018-12-04 17:07:15 +08:00
有点详细,还配有图表。
|
10
www5070504 2018-12-04 17:07:32 +08:00
m 感觉很不错
|
11
shuizhengqi 2018-12-04 17:10:32 +08:00
不是想打击你。。你这个样式,真的是见得好多,而且最上面的导航栏是 bootstrap 的样式吧
|
12
leetao94 OP @shuizhengqi 是的~flask-bootstrap~
|
13
leetao94 OP @www5070504 感谢支持
|
14
mrrobot97 2018-12-05 11:18:36 +08:00
买个域名吧
|