Skip to content
This repository has been archived by the owner on Jun 6, 2023. It is now read-only.

real-qiuxingxiang/Django-Blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

基于 Django 2.1.5 搭建的简洁博客

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published