forked from jhao104/django-blog
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
15 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,18 @@ | ||
## Django搭建博客 | ||
 | ||
[](http://www.spiderpy.cn/blog/) | ||
 | ||
 | ||
[](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 渲染,代码高亮 | ||
* 三方社会化评论系统支持(畅言) | ||
* 三种皮肤自由切换 | ||
* 阅读排行榜/最新评论 | ||
|
@@ -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 | ||
|
@@ -54,14 +54,16 @@ http://ip:port/admin | |
## Screen Shots | ||
|
||
* 首页 | ||
 | ||
 | ||
|
||
* 文章列表 | ||
 | ||
 | ||
|
||
* 文章内容 | ||
 | ||
 | ||
|
||
## 历史版本 | ||
|
||
* [黑白简约版](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) |