- Flask - FastCGI
- Flask - Deployment
- Flask - Sijax
- Flask - SQLAlchemy
- Flask - SQLite
- Flask - WTF
- Flask - Mail
- Flask - Extensions
- Flask - File Uploading
- Flask - Message Flashing
- Flask - Redirect & Errors
- Flask - Sessions
- Flask - Cookies
- Sending Form Data to Template
- Flask - Request Object
- Flask - Static Files
- Flask - Templates
- Flask - HTTP Methods
- Flask - URL Building
- Flask - Variable Rules
- Flask - Routing
- Flask - Application
- Flask - Environment
- Flask - Overview
- Flask - Home
Flask Useful Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Flask – Overview
What is Web Framework?
Web Apppcation Framework or simply Web Framework represents a collection of pbraries and modules that enables a web apppcation developer to write apppcations without having to bother about low-level details such as protocols, thread management etc.
What is Flask?
Flask is a web apppcation framework written in Python. It is developed by Armin Ronacher, who leads an international group of Python enthusiasts named Pocco. Flask is based on the Werkzeug WSGI toolkit and Jinja2 template engine. Both are Pocco projects.
WSGI
Web Server Gateway Interface (WSGI) has been adopted as a standard for Python web apppcation development. WSGI is a specification for a universal interface between the web server and the web apppcations.
Werkzeug
It is a WSGI toolkit, which implements requests, response objects, and other utipty functions. This enables building a web framework on top of it. The Flask framework uses Werkzeug as one of its bases.
Jinja2
Jinja2 is a popular templating engine for Python. A web templating system combines a template with a certain data source to render dynamic web pages.
Flask is often referred to as a micro framework. It aims to keep the core of an apppcation simple yet extensible. Flask does not have built-in abstraction layer for database handpng, nor does it have form a vapdation support. Instead, Flask supports the extensions to add such functionapty to the apppcation. Some of the popular Flask extensions are discussed later in the tutorial.
Advertisements