Giter VIP home page Giter VIP logo

django_web's Introduction

README

django_web

投标软件Django框架

1. Fork本项目到本地仓库

2.链接数据库

  • 安装后在菜单栏中找到 MySQL Workbench并打开
  • 登录本地数据库,需要自己设置登陆密码
  • 在数据库内create schema,名称为django
  • 在终端执行命令pip install mysqlclient
  • 在setting.py中的database下面把密码改为本地数据库密码
  • 在终端执行python manage.py makemigrations与python manage.py migrate,数据库里就会创建models里的表

3.运行项目

  • 在终端执行python manage.py runserver,点击终端出现的网址即可

4.接入函数

  • 在python_function文件夹下已有Qualification和Repeatability两个文件夹,对应资质检测和重复度对比的函数,爬虫放入Qualification下,其他网页对应函数库以同样命名方式在python_function下自建,命名需规范,勿用中文拼音
  • 导入函数后,需要在views.py和models.py内新增代码
    • views.py
      • 在网页对应的函数下面接入函数接口
    • models.py
      • 创造新的class
  • 修改完这两个文件后需要重新执行makemigration和migrate命令,将新建表移入在数据库中

django_web's People

Contributors

oliverrrrrrrrrr avatar ixtcwbt4750 avatar zlffff avatar

Stargazers

 avatar

Watchers

 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.