In my base.html, I have {% include 'footer.html' %}
and I extend base.html to every page of mine. But for some pages I don't want footer to be there. Is it possible to exclude that footer using some block key word?
You could use a block
in your base.html
:
# base.html
...
{% block footer %}
{% include 'footer.html' %}
{% endblock %}
And then in a template where you don't want footer, do this:
# Some template
{% block footer %}
{% endblock %}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With