Flask Tutorial
About Lesson

In this Flask Tutorial we are going to learn about Static Files in Flask, as i have already mentioned that you can add your Images, JavaScript files and Bootstrap files inside the static folder, so in here we want to add an icon for our web pages, create a static folder in your Flask project and after that add an icon in that folder.

 

Now open your base.html file because our all web pages extends from base.html and it is good place to link our icon in that file, you can use this code for adding the icon.

 

 

templates/base.html

 

 

templates/index.html

 

 

templates/about.html

 

 

templates/contact.html

 

 

templates/500.html

 

 

 

templates/404.html

 

 

 

And this is our app.py file.

 

Thank you for visiting my website! If you enjoyed the free courses, please consider supporting my works on Patreon.
Exercise Files
No Attachment Found
No Attachment Found