Flask Web Development in Python 7 - Extends for templates

preview_player
Показать описание

In this Flask tutorial video, we cover the extending capability of Flask Templates. The idea of extending is to allow for custom templates "within" other templates. So, you will generally have something like your header and footer in your main template, with things like your navbar, logo/banner, and then your footer information. Then, in the body area, you have the body data actually coming from another template that "extends" the main template.

Bitcoin donations: 1GV7srgR4NJx4vrk7avCmmVQQrqmv87ty6
Рекомендации по теме
Комментарии
Автор

Great video. Would ve interesting to see how to easily make the "active" nav bar element thingy :)

Retro_Tech_Nerd
Автор

Our flask is empty. I think we need more :) Keep on good work, best flask series so far!

vedranz
Автор

Few side-notes. I think the safest way to gracefully restart the Apache would be: sudo apache2ctl graceful. It's useful to avoid any surprises when the whole httpd server goes down, because of some issues especially when you're working on multi-site environment. Other way to avoid caches is to add ?foo at the end, or forcing the refresh (CMD/Ctrl+Shift+R), otherwise you've to check the headers if it contains X-Cache (in Developers Tools/Inspect), if so, check which service is responsible for caching the invalid pages.

kenorb
Автор

Did you ever notice that the further you get in tutorials, the more the views begin decreasing, lol? Due to my great power of deductions (sarcasm), I've come to this conclusion in every tutorial I've ever looked at.

Colstonewall
Автор

My graph page did not work :(. But thank you so much for the work you do!

propupul
Автор

Thanks very much for making this tutorial series happened, I found it extremely useful as a lot of other tutorials or even books gave example of "creating" a website in your local drive, while yours is actually putting it on the live server. I wonder if this is the end of the whole flask tutorial series, or will you be adding more vids in the future?

xsuperman
Автор

Do you do teach one on one as well on skype? Thanks

mohanankur
Автор

Hi great tutorials! it would be nice to see how to make a login and how to work with numbers on the website.

- Jakob

jakobjensen
welcome to shbcf.ru