Git Product home page Git Product logo

lbms-by-django's Introduction

lib

Library Book Manager System Support By Python-Django

环境

Python2.7 Django

配置

setting.py文件中配置localhost的mysql数据库地址及用户名密码

迁移项目

在项目根目录下执行如下代码

python manage.py makemigrations library
python manage.py migrate

Django将自动创建项目所需的数据库表

运行

    python manager.py runserver

默认在8000端口运行,可以访问 http://localhost:8000 查看运行结果

如果在接入外网服务器上使用这种运行方式,会导致外网无法访问的问题,使用如下命令可以保服务器自身和外网客户端都能访问该项目。

请自行把替换成运行该项目的端口

    python manage.py runserver 0.0.0.0:<PORT>

lbms-by-django's People

Contributors

vinci7 avatar

Stargazers

liu avatar

Watchers

James Cloos avatar  avatar

Forkers

leuher

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.