Web App Development in Python

Introduction to Web Development in Python using Flask

Roman Paolucci
3 min readJun 1, 2020
Photo from Unsplash

What is Flask?

Flask is a lightweight Python library that helps us develop web applications. I’ve used Flask in personal projects to build trading dashboards, and in a professional setting to deploy AI workflow management systems for hospitals. In this article, I want to introduce Flask and demonstrate how easy it is to get started building your own web applications.

Routing

The best way to understand how Flask works is by working with it hands-on. After that, you will get a sense of how to build out each section of your web application. First, let’s import and create an instance of Flask.

When we eventually run our Flask instance and connect to it in our browser it will have a default host (127.0.0.1 or localhost) and a default port (5000). To connect to our web application in a browser we would type in the URL and port (localhost:5000) in tandem with a rule to help us retrieve the appropriate content. So let’s create a new URL…

--

--

Roman Paolucci

Graduate Engineering Student @ Columbia University Brazilian Jiu-Jitsu Competitor & Coach https://romanmichaelpaolucci.github.io