Giter Club home page Giter Club logo

django-blog's Introduction

Django搭建博客

py27  

使用Django快速搭建博客

要求

  • Python: 2.X
  • Django: 1.10.x
  • Mysql

特点

  • 博客文章 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/message.html中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

  • 首页 首页

  • 文章列表 文章列表

  • 文章内容 文章内容

历史版本

django-blog's People

Contributors

jhao104 avatar wmh02240 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.