Giter Site home page Giter Site logo

addressbook's Introduction

Python期末作业通讯录|2022/6/6|Flask-Mysql实现

结果图

增删改查、登录、注册 img.png

运行说明

数据库

请在 config 文件夹下修改对应的数据库链接 URI SQLALCHEMY_DATABASE_URI = "mysql://root:[email protected]/addressbook"修改 mysql://你的用户名:你的密码@主机地址/数据库名。

首先需要创建 addressBook 数据库,编码为 utf-8 ,如果自定义其他数据库名,则需要在 config 下修改对应的配置。 关于 config 如果需要修改加载哪一个文件,则需要到 application 中修改。

将 addressbook.sql 执行, 将数据导入数据库中。

python 环境

在你所需要的python环境中,打开 终端 。 运行 pip install -r requirements.txt

运行

在终端中输入 python manage.py runserver 当命令行中提示 run: 0.0.0.0:5000 在浏览器中访问 localhost:5000 即可运行本项目

线上发布说明

需要更改连结数据库方式,或使用定时任务,否则会出现8小时连结异常问题。

addressbook's People

Contributors

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