Skip to content
Proyectos

Acerca de

django搭建博客

Desarrollo web y de aplicaciones

Cómo se miden estas cifras

Crecimiento de estrellas medido

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
Recopilando historial

Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.

README.md

Original

Django搭建博客

py35 Django2.2

使用Django快速搭建博客

要求

  • Python: 3.5
  • Django: 2.2.0

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

特点

  • 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

文档

使用

# 初始化用户名密码
python manage.py createsuperuser
# 按照提示输入用户名、邮箱、密码即可
# 登录后台 编辑类型、标签、发布文章等
http://ip:port/admin

浏览器中打开http://127.0.0.1:8000/即可访问

Screen Shots

  • 首页 首页

  • 文章列表 文章列表

  • 文章内容 文章内容

历史版本

Explorar proyectos relacionados

Cargando…