Serving Flask Applications With uSWGI on Ubuntu

Introduction

In this tutorial, we'll build a sample Python application using Flask and deploy the application using uWSGI and Nginx. Flask is a popular micro framework widely used in web development using Python. It is called a microframework as it doesn't required any other tools or library to create a web application, and all other resources needed in the process are imported as third party libraries including database abstraction layer.

To start with the basics, we'll create a hello world application using Flask. We'll use uWSGI application server and Nginx to act as front end reverse proxy server.