Let’s build a blogging website with Python + Flask

Manpreet Singh
3 min readJul 1, 2021

Welcome back! Web development is one of the best things you can do with Python, one of the most popular web frameworks for Python is Flask, so let’s go ahead and walkthrough a Flask project where we build a blogging website! The specific project we’re building out is hosted on GitHub, check out the link below to go straight to the project (please give the original creator of the code all of the credit):

Let’s go ahead and walkthrough this code:

The Code

Starting off, once we download the folder you will see several different files: an app folder, a readme file, a requirements.txt file and a wsgi.py file. Within the app folder we will see several different files as well, a static folder, a templates folder, a db.py file and a schema.sql file:

Within the db.py file, this specific file creates a database for our website. Within the templates folder we…

--

--

Manpreet Singh
Manpreet Singh

Responses (2)