I've added a template tag to my app which I load in a view located in inc/base.html
. This view contains my basic HTML layout. All my other views begin {% extends "inc/base.html" %}
.
In one of my views I want to refer to my template tag, which is loaded in inc/base.html
using this code: {% load spb_utils %}
. If I try to use on of the template tags inside base.html it works fine, but if I try it any other view, it errors unless I manually add {% load spb_utils %}
to the extended view as well.
Is this behaviour intentional? Eg, if I extend a template, does Django deliberately not load any of the template tags the 'parent' template loads? Is there a smart way to globally load my tags?
thanks.