官术网_书友最值得收藏!

Flask extensions

Flask is a microframework, but it has an extensible nature wherein you can add more features as per your needs. To develop a Todo application, we may need some basic features such as data persistence and a user authentication mechanism. So, while working on a Flask application, we are going to use some Flask extensions.

The Flask registry provides numerous extensions, which are standalone packages, and you can easily configure them with your Flask application instance. You can see the complete list of Flask extensions at: http://flask.pocoo.org/extensions/.

We are going to use the following Flask and Flask extensions packages:

  • Flask==0.12.2
  • Flask-Login==0.4.0
  • Flask-SQLAlchemy==2.3.2
  • Flask-WTF==0.14.2
  • Flask-Migrate==2.1.1

I would recommend listing these packages in a separate file named requirements.txt and then installing them in one go, as follows:

pip install -r requirements.txt

This will install all of the listed packages with their dependencies.

主站蜘蛛池模板: 绥中县| 石楼县| 正安县| 绥滨县| 讷河市| 巴彦淖尔市| 沈丘县| 桦川县| 东乡族自治县| 青龙| 宜黄县| 西乌珠穆沁旗| 乌审旗| 恩平市| 屏东市| 永城市| 广西| 茌平县| 浑源县| 南康市| 册亨县| 乌拉特后旗| 巴南区| 唐海县| 虹口区| 新巴尔虎右旗| 衡阳市| 新邵县| 封丘县| 三台县| 涞源县| 洪泽县| 蒙城县| 青神县| 天祝| 根河市| 伊通| 玉屏| 拉萨市| 南川市| 临泽县|