作为一名技术人员一定要有自己的博客,用来记录平时技术上遇到的问题,把技术分享出去就像滚雪球一样会越來越大,可以使用博客平台(简书、博客园、开源中国、CSDN等)来写博客,但我总感觉少了点什么,于是就在网上找了很多了博客系统,其实大同小异,于是就用业余时间用python开发了h3blog,一个使用python开发的轻量博客系统,麻雀虽小但五脏也快长全了,功能一直都会不断更新...,你也可以先睹为快地址:http://www.h3blog.com
数据库默认使用sqlite3,正式使用时请自行切换到mysql数据库
Linux 下运行环境配置
$ git clone https://gitee.com/pojoin/h3blog.git
$ cd h3blog
$ python -m venv venv #创建python虚拟环境
$ source venv/bin/activate
$
$ pip install -r requirements.txt # 安装项目依赖,可能不全,根据提示自行安装即可
$ flask initdb #创建数据库
$ export FLASK_ENV=development
$ flask run # 启动
windows 下运行环境配置
> git clone https://gitee.com/pojoin/h3blog.git
> cd h3blog
> python -m venv venv #创建python虚拟环境
> .\venv\Scripts\activate.bat #激活虚拟环境
>
> pip install -r requirements.txt # 安装项目依赖,可能不全,根据提示自行安装即可
> flask initdb #创建数据库
> set FLASK_ENV=development
> flask run # 启动
首次访问后台先创建后台管理账号:http://127.0.0.1:5000/admin 根据提示创建账号,并登录
项目配置文件推荐是.env进行私密配置,这也可以减少配置文件的修改
我的博客 何三笔记
Sign in for post a comment
Activity
Community
Health
Trend
Influence
:Code submit frequency
:React/respond to issue & PR etc.
:Well-balanced team members and collaboration
:Recent popularity of project
:Star counts, download counts etc.
Comments ( 28 )