Introduction to Flasklearning manual

Published on 2023-04-20 00:10:05 · 中文 · بالعربية · Español · हिंदीName · 日本語 · Русский язык · 中文繁體

What is a web framework?

A web application framework or simply a web framework represents a set of libraries and modules that enable web application developers to write applications without having to worry about low-level details such as protocols, thread management, etc.

What is Flask?

Flask is a web application framework written in Python. It was developed by Armin Ronacher, who leads an international organization of Python enthusiasts called Pocco. Flask is based on the Werkzeug WSGI toolkit and the Jinja2 template engine. Both of these are Pocco projects.

WSGI

The Web Server Gateway Interface (WSGI) has been adopted as a standard for Python web application development. WSGI is a specification for a common interface between web servers and web applications.

WERKZEUG

It is a WSGI toolkit that implements request, response objects, and other utility functions. This can be built on top of which a web framework can be built. The Flask framework uses Werkzeug as one of its base modules.

Jinja2

jinja2 is Python's popular templating engine. The web template system combines templates with specific data sources to render dynamic web pages.
Flask is often called Microframework. It is designed to keep the core of the application simple and extensible. Flask does not have a built-in abstraction layer for database processing, nor does it form validation support. Instead, Flask supports extensions to add these features to applications. Some of the popular Flask extensions will be discussed in later chapters of this tutorial.