March 2020
Intermediate to advanced
608 pages
17h 17m
English
In Django templates, normally you would use template inheritance to overwrite blocks from parent templates to include styles or scripts to the HTML document. This means that every main template of each view should be aware of all content that is inside; however, sometimes it is much more convenient to let the included templates decide what styles and scripts to load. It is possible to do this with Django Sekizai, which we will use in this recipe.