项目地址: 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 等功能待开发
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.