https://github.com/jhao104/django-blog
django搭建博客
https://github.com/jhao104/django-blog
blog django django-blog djangoblog
Last synced: 2 months ago
JSON representation
django搭建博客
- Host: GitHub
- URL: https://github.com/jhao104/django-blog
- Owner: jhao104
- License: mit
- Created: 2016-10-11T06:54:57.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-02-07T19:27:44.000Z (over 1 year ago)
- Last Synced: 2025-03-29T00:07:00.639Z (2 months ago)
- Topics: blog, django, django-blog, djangoblog
- Language: CSS
- Size: 19.6 MB
- Stars: 426
- Watchers: 25
- Forks: 208
- Open Issues: 29
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Django搭建博客


[](http://www.spiderpy.cn/blog/)使用Django快速搭建博客
### 要求
* Python: 3.5
* Django: 2.2.0### 示例博客:
### 特点
* markdown 渲染,代码高亮
* 三方社会化评论系统支持(畅言)
* 三种皮肤自由切换
* 阅读排行榜/最新评论
* 多目标源博文分享
* 博文归档
* 友情链接### 下载
```
wget https://github.com/jhao104/django-blog/archive/master.zip
or
git clone [email protected]:jhao104/django-blog.git
```### 安装
```
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
```
[文档](docs/install.md)### 使用
```python
# 初始化用户名密码
python manage.py createsuperuser
# 按照提示输入用户名、邮箱、密码即可
# 登录后台 编辑类型、标签、发布文章等
http://ip:port/admin```
浏览器中打开即可访问
## Screen Shots
* 首页
* 文章列表
* 文章内容
## 历史版本
* [v2.0](https://github.com/jhao104/django-blog/tree/v2.0)
* [v1.0](https://github.com/jhao104/django-blog/tree/v1.0)