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

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!

主站蜘蛛池模板: 高陵县| 冷水江市| 苍梧县| 新丰县| 和田市| 仁怀市| 泗水县| 大埔县| 蒲城县| 苗栗县| 通化县| 全南县| 剑阁县| 中西区| 尚志市| 芦溪县| 伊川县| 江陵县| 广汉市| 东兰县| 鹤峰县| 罗平县| 久治县| 汤阴县| 施甸县| 彭山县| 恩施市| 临汾市| 泾阳县| 泗洪县| 吉林省| 金塔县| 襄樊市| 邯郸市| 延津县| 姚安县| 高淳县| 尼玛县| 息烽县| 阿鲁科尔沁旗| 牙克石市|