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

  • 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!

主站蜘蛛池模板: 东乌| 平定县| 永定县| 望谟县| 巴楚县| 香河县| 西和县| 揭西县| 新郑市| 忻州市| 中宁县| 民乐县| 福鼎市| 珠海市| 祁连县| 清原| 和林格尔县| 昌乐县| 加查县| 新宾| 乌拉特前旗| 沅陵县| 大田县| 靖宇县| 云霄县| 肥西县| 松阳县| 襄垣县| 威信县| 龙川县| 兰坪| 上思县| 海原县| 古蔺县| 日土县| 嘉定区| 中卫市| 祁东县| 霍邱县| 五华县| 阜康市|