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

  • Flask By Example
  • Gareth Dwyer
  • 171字
  • 2021-07-09 20:06:52

Introducing Flask

Flask is a micro framework for Python web development. A framework, in the simplest terms, is a library or collection of libraries that aims to solve a part of a generic problem instead of a complete specific one. When building web applications, there are some problems that will always need to be solved, such as routing from URLs to resources, inserting dynamic data into HTML, and interacting with an end user.

Flask is a micro framework because it implements only core functionality (including routing) but leaves more advanced functionality (including authentication and database ORMs) to extensions. The result of this is less initial setup for the first-time user and more choice and flexibility for the experienced user. This is in contrast with "fuller" frameworks, such as Django, which dictate their own ORM and authentication technologies.

As we'll discuss, our Hello World application in Flask can be written in only seven lines of code, with the entire application consisting of a single file. Does that sound good? Let's get going!

主站蜘蛛池模板: 缙云县| 武清区| 抚松县| 桓仁| 凤翔县| 陇川县| 潜山县| 宜川县| 翁牛特旗| 那曲县| 温州市| 瓮安县| 神池县| 偃师市| 宜君县| 龙岩市| 长寿区| 麦盖提县| 连城县| 缙云县| 清流县| 额济纳旗| 牡丹江市| 邢台市| 沅江市| 龙川县| 蓝山县| 浑源县| 湾仔区| 紫金县| 南汇区| 织金县| 永靖县| 璧山县| 克东县| 磴口县| 仁寿县| 秭归县| 新沂市| 通榆县| 贵州省|