I have a master template file called base.html
, in it I have the following code:
{% ifequal environment "dev" %}
{% block stylesheets %}{% endblock %}
{% endifequal %}
I inherit this in other templates and do the following:
{% block stylesheets %}
<link ... >
{% endblock %}
The problem is, the stylesheet I link never gets applied, the stylesheets block seems to be ignored whether the ifequal condition is met in the base or not.