myblog/README.md
2018-07-04 20:23:07 +08:00

57 lines
1.5 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## Django搭建博客
![py27](https://camo.githubusercontent.com/392a32588691a8418368a51ff33a12d41f11f0a9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f707974686f6e2d322e372d6666363962342e737667)
 [![](https://img.shields.io/badge/Django-1.10-green.svg)](http://www.spiderpy.cn/blog/)
[![](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
### 示例博客:<http://www.spiderpy.cn/blog>
### 特点
* 博客文章 markdown 渲染,代码高亮
* 三方社会化评论系统支持(畅言)
* 三种皮肤自由切换
* 阅读排行榜/最新评论
* 多目标源博文分享
* 博文归档
* 友情链接
### 下载
```
wget https://github.com/jhao104/django-blog/archive/master.zip
or
git clone git@github.com:jhao104/django-blog.git
```
### 安装
```
pip install -r requirements.txt #安装所有依赖
setting.py配置自己的数据库
配置畅言到http://changyan.kuaizhan.com/注册站点,将templates/message.html中js部分换成你在畅言中生成的js。
python manage.py makemigrations blog
python manage.py migrate
python manage.py runserver
```
浏览器中打开<http://127.0.0.1:8000/>即可访问
## Screen Shots
* 首页
![首页](./doc/image/image1.png)
* 文章列表
![文章列表](./doc/image/image2.png)
* 文章内容
![文章内容](./doc/image/image3.png)
## 历史版本
* [黑白简约版](https://github.com/jhao104/django-blog/tree/v1.0)