07:31Includes - Flask Web Development with Python 26
From the creator
In this tutorial, we're going to be discussing including templates, as compared to extending templates with the web development framework for Python, Flask. If you recall, extending templates was useful for things like headers and footers that would be on every page. Extending templates meant you had a main template, like a header.html, and then every other file pretty much "extended" that main one. What if, however, you some something like, say, a comment box that you want to have on a lot of pages, but not necessarily all? Maybe instead of a comment box, it's some questions and challenges to conditionally appear for +=1 subscribers, who knows! How might we do something like this? Text-based tutorial/sample code: http://pythonprogramming.net/flask-includes-tutorial/
Published 2015-11-16 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.





