Flask Tutorial
About Lesson

In this Flask lesson we are going to learn How to Add Bootstrap Styles in Flask Application, there are three different ways that you can add Bootstrap in Flask Application, you can download the bootstrap files and add those files in your static folder of Flask project, you can install Flask-Bootstrap library or you can use CDN links, we are going to use CDN links.

 

 

Open your base.html, we are going to add our Bootstrap CDN links in here, also we are going to create a simple bootstrap navbar in our base.html.

 

templates/base.html

 

 

templates/index.html

 

 

templates/about.html

 

 

templates/contact.html

 

 

This is our app.py file.

 

 

 

Run your flask application and go to http://localhost:5000/, this is the result.

How to Add Bootstrap Styles in Flask Application
How to Add Bootstrap Styles in Flask Application