Skip to content

Commit

Permalink
[update] 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jhao104 committed Oct 10, 2020
1 parent 7a8800a commit 42e3c72
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
## Django搭建博客
![py27](https://camo.githubusercontent.com/392a32588691a8418368a51ff33a12d41f11f0a9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f707974686f6e2d322e372d6666363962342e737667)
 [![](https://img.shields.io/badge/Django-1.10-green.svg)](http://www.spiderpy.cn/blog/)
![py35](https://img.shields.io/badge/Python-3.5-red.svg)
![Django2.2](https://img.shields.io/badge/Django-2.2.0-green.svg)
[![](https://img.shields.io/badge/Powered%20by-@j_hao104-blue.svg)](http://www.spiderpy.cn/blog/)

使用Django快速搭建博客
### 要求
* Python: 2.X
* Django: 1.10.x
* Mysql
* Python: 3.5
* Django: 2.2.0

### 示例博客:<http://www.spiderpy.cn/blog>

### 特点

* 博客文章 markdown 渲染,代码高亮
* markdown 渲染,代码高亮
* 三方社会化评论系统支持(畅言)
* 三种皮肤自由切换
* 阅读排行榜/最新评论
Expand All @@ -30,9 +29,10 @@ git clone [email protected]:jhao104/django-blog.git

### 安装
```
pip install -r requirements.txt #安装所有依赖
setting.py配置自己的数据库
配置畅言:到http://changyan.kuaizhan.com/注册站点,将templates/message.html中js部分换成你在畅言中生成的js。
pip install -r requirements.txt # 安装所有依赖
修改setting.py配置数据库
配置畅言:到http://changyan.kuaizhan.com/注册站点,将templates/blog/component/changyan.html中js部分换成你在畅言中生成的js。
畅言js位置: 畅言管理后台-》安装畅言-》通用代码安装-》自适应安装代码
python manage.py makemigrations blog
python manage.py migrate
python manage.py runserver
Expand All @@ -54,14 +54,16 @@ http://ip:port/admin
## Screen Shots

* 首页
![首页](./doc/image/image1.png)
![首页](docs/image/image1.png)

* 文章列表
![文章列表](./doc/image/image2.png)
![文章列表](docs/image/image2.png)

* 文章内容
![文章内容](./doc/image/image3.png)
![文章内容](docs/image/image3.png)

## 历史版本

* [黑白简约版](https://github.com/jhao104/django-blog/tree/v1.0)
* [v2.0](https://github.com/jhao104/django-blog/tree/v2.0)

* [v1.0](https://github.com/jhao104/django-blog/tree/v1.0)

0 comments on commit 42e3c72

Please sign in to comment.