Python Flask build small micro-channel program reservation system Learning Resources

Python Flask build small micro-channel program reservation system Learning Resources

A, Flask MVC framework

 

1.1 The actual project structure

 

1.2application.py project configuration file

Flask The flask-script module

 

 

static.py file (to generate the deployment environment does not require this document, only the problem of local static file can not be loaded question)

 

 

1.3, manager.py startup file

 

 

1.4、login.py 

 

 

1.5, requirements.txt project depends on the library management

 

 

Second, the link with the unified version management

URL to establish a unified management functions, so you can easily modify the URL, reconstruction and expansion

 

 

Third, the account schematic functional block

 

 

Fourth, membership management data table design

 

 

4.1, create a database administrator and member data table:

Create a database name: food_db

 

 

4.2, administrators create member data table (user):

 

 

4.3, installation flask-sqlacodegen

flask-sqlacodegen quickly generate ORM configuration file

 

 

Thanks for watching.

 

Guess you like

Origin www.cnblogs.com/itye/p/11672345.html