Flask webserver introduction
Martin McBride, 2020-01-22
Tags linux
Categories flask sqlite

In this series we will learn about Flask, a simple and lightweight web framework written in Python.
We will create a simple web server, then develop it to add different types of pages (list and detail) based on a simple SQLite database.
These instructions are for a Windows PC running Python 3.x. The instructions should apply to Linux, including Raspberry Pi, except that the method for installing the Python Flask module will be different. Check how to install modules for your flavour of Linux (eg using apt-get for Debian).
In tutorial includes:
- Getting started - creating a simple web server.
- HTML templates and CSS styling.
- Adding an about page.
- Pages with dynamic content.
- Adding a detail page - using different templates.
- Using an SQLite database to create list and detail pages.
If you found this article useful, you might be interested in the book Functional Programming in Python or other books by the same author.