Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jhao104/django-blog
django搭建博客
https://github.com/jhao104/django-blog
blog django django-blog djangoblog
Last synced: 17 days ago
JSON representation
django搭建博客
- Host: GitHub
- URL: https://github.com/jhao104/django-blog
- Owner: jhao104
- License: mit
- Created: 2016-10-11T06:54:57.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-02-07T19:27:44.000Z (9 months ago)
- Last Synced: 2024-10-14T10:19:18.761Z (30 days ago)
- Topics: blog, django, django-blog, djangoblog
- Language: CSS
- Size: 19.6 MB
- Stars: 425
- Watchers: 27
- Forks: 210
- Open Issues: 29
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Django搭建博客
![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: 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
* 首页
![首页](docs/image/image1.png)* 文章列表
![文章列表](docs/image/image2.png)* 文章内容
![文章内容](docs/image/image3.png)## 历史版本
* [v2.0](https://github.com/jhao104/django-blog/tree/v2.0)
* [v1.0](https://github.com/jhao104/django-blog/tree/v1.0)