flask popular third-party plug-ins

Flask-Script     

1. We can start when the server Flask, by way of command line arguments passed

2. Add the current application script command

 

Flask-WTF

1. We can use Flask-WTF extension, which encapsulates the WTForms, and it has form data validation function

 

 

Flask-SQLAlchemy

1.SQLALchemy is actually an abstract database, so developers do not have to deal directly and SQL statements, but to operate the database by Python objects, while abandoning some performance overhead, the result is greatly improved development efficiency

2.SQLAlchemy is a relational database framework, which provides native database operations ORM top and bottom. flask-sqlalchemy is a simplified flask extended operation SQLAlchemy

 

 

Flask-Migrate

1. In the development process, the need to modify the database model, but also to update the database after the modification. The most direct way is to delete the old table, but it will lose data.

2. A better solution is to use a database migration framework that can track changes in the database schema, and then apply the changes to the database.

3. Flask-Migrate extension may be used in the Flask to data migration. Flask-Script and integrated in order to complete all operations.

 

Guess you like

Origin www.cnblogs.com/ls1997/p/11240157.html