Giter VIP home page Giter VIP logo

django-blog's Introduction

Django Blog

基于 Django 开发的博客系统:

  • Python 3.6.6 和 Django 2.1.4
  • MySQL
  • xadmin 后台管理
  • Simditor Markdown 编辑器,图片 Drag and Drop 上传
  • 代码高亮
  • RSS订阅
  • 标签、阅读量
  • haystack 文章内容搜索
  • Valine 评论系统
  • 集成 django-compressor,静态文件压缩

Usage:

  • 新建虚拟环境
git clone [email protected]:chiuxingxiang/Django-Blog.git
virtualenv --python=<py3path> venv
. venv/bin/activate
  • 安装依赖
pip install -r requirements.txt
  • 数据库迁移
python manage.py makemigrations
python manage.py migrate
  • 创建管理员
python manage.py shell  
from django.contrib.auth.models import User  
user=User.objects.create_superuser('用户名','邮箱','密码')
  • 创建搜索索引
python manage.py rebuild_index
  • 压缩静态文件
python manage.py collectstatic
python manage.py compress

首页

index

详情页 + 评论

detail

Tag List

tag_list

xadmin后台

admin

Simditor Markdown 文章编辑器 图片上传

pic_upload

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.