Templates, Bootstrap Navbars, and Links - Flask Fridays #4

Codemy.com
Codemy.com
55.3 هزار بار بازدید - 4 سال پیش - In this video I'll show
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
4 سال پیش در تاریخ 1399/11/17 منتشر شده است.
55,356 بـار بازدید شده
... بیشتر