
Welcome to Flask — Flask Documentation (3.1.x)
Flask provides configuration and conventions, with sensible defaults, to get started. This section of the documentation explains the different parts of the Flask framework and how they can be used, …
Quickstart — Flask Documentation (3.1.x)
Ideally your web server is configured to serve them for you, but during development Flask can do that as well. Just create a folder called static in your package or next to your module and it will be available …
Deploying to Production — Flask Documentation (3.1.x)
The primary goal of these docs is to familiarize you with the concepts involved in running a WSGI application using a production WSGI server and HTTP server. There are many WSGI servers and …
Deploy to Production — Flask Documentation (3.1.x)
This part of the tutorial assumes you have a server that you want to deploy your application to. It gives an overview of how to create the distribution file and install it, but won’t go into specifics about what …
Uploading Files — Flask Documentation (3.1.x)
So how exactly does Flask handle uploads? Well it will store them in the webserver’s memory if the files are reasonably small, otherwise in a temporary location (as returned by tempfile.gettempdir()).
nginx — Flask Documentation (3.1.x)
nginx is a fast, production level HTTP server. When serving your application with one of the WSGI servers listed in Deploying to Production, it is often good or necessary to put a dedicated HTTP …
Development Server — Flask Documentation (3.1.x)
Flask provides a run command to run the application with a development server. In debug mode, this server provides an interactive debugger and will reload when code is changed.
Waitress — Flask Documentation (3.1.x)
The only required argument to waitress-serve tells it how to load your Flask application. The syntax is {module}:{app}. module is the dotted import name to the module with your application. app is the …
Testing Flask Applications — Flask Documentation (3.1.x)
Testing Flask Applications ¶ Flask provides utilities for testing an application. This documentation goes over techniques for working with different parts of the application in tests. We will use the pytest …
Templates — Flask Documentation (3.1.x)
Flask uses the Jinja template library to render templates. In your application, you will use templates to render HTML which will display in the user’s browser.