- 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!
- C++程序設(shè)計(第3版)
- 工程軟件開發(fā)技術(shù)基礎(chǔ)
- Redis Applied Design Patterns
- Learning Spring 5.0
- Learning Bayesian Models with R
- 深度強化學習算法與實踐:基于PyTorch的實現(xiàn)
- 深度學習原理與PyTorch實戰(zhàn)(第2版)
- Simulation for Data Science with R
- 現(xiàn)代CPU性能分析與優(yōu)化
- SAP Web Dynpro for ABAP開發(fā)技術(shù)詳解:基礎(chǔ)應(yīng)用
- 體驗之道:從需求到實踐的用戶體驗實戰(zhàn)
- Microsoft XNA 4.0 Game Development Cookbook
- Java Web應(yīng)用開發(fā)
- 微信公眾平臺開發(fā)最佳實踐
- Mastering Magento Theme Design