Templates, Bootstrap Navbars, and Links - Flask Fridays #4
Codemy.com Codemy.com
235K subscribers
56,731 views
1.2K

 Published On Feb 5, 2021

In this video I'll show you how to break apart your website using templates with base.html. We'll also learn how to use the Bootstrap CSS framework with our Flask App.


After templating out our website, we'll add a cool Bootstrap Navbar, and then learn how to use the url_for tag to create links.


Timecodes
0:00 - Intro
0:52 - Why Template Out A Website?
2:10 - Create A base.html Template File
3:31 - Block Content Tags and Extends base.html
4:45 - Run Flask Server In Terminal
5:58 - Add Bootstrap To Flask App
8:12 - Add A Bootstrap Navbar To Flask App
9:18 - Jinja2 Flask Include Tag
10:03 - Customize Bootstrap Navbar
11:26 - Add Flask url_to Links To Navbar
12:58 - Passing Parameters To Links
15:37 - Conclusion

show more

Share/Embed