Giter Site home page Giter Site logo

django-blog-1's Introduction

Django-Blog

此项目是一个简易博客系统

Powered by python 3.5 and django 1.10

实现功能:

1:文章归档
2:文章分类
3:添加标签
4:添加评论
5:分页显示

项目主要结构:

mycode/
manage.py
blog/

init.py
admin.py
apps.py
forms.py
models.py ---模型
tests.py
urls.py ---url解析
views.py ---视图函数
static/ ---存放hmtl相关静态文件
templates/ ---html文件


项目运行方式

  1. fork 本项目到你的仓库

  2. 克隆你的仓库到本地

  3. 命令行执行 pip install -r requirements.txt(注意在 requirements.txt 所在目录下执行,否则请输入完整路径名)安装依赖包

  4. 迁移数据库,在 manage.py 所在目录执行

     python manage.py makemigrations
     python manage.py migrate
    
  5. 类似步骤4,运行命令创建超级用户

     python manage.py createsuperuser
    
  6. 类似步骤4、5,在 manage.py 所在目录执行

     python manage.py runserver
    
  7. 浏览器输入 http://127.0.0.1:8000/blog

  8. 注:本项目的db.sqlite3文件为原有数据库文件,可直接使用,则可以跳过第4,5步

    username : haha
    password : wode1234
    

django-blog-1's People

Watchers

xueji 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.