{% extends "base.html" %} {% block content %} {% if condition %}blah blah blah blah{% else %} {{ super() }} {% endif %} {% endblock content %}
Here is what the above code is Doing:
1. The base.html template is extended by the child template.
2. The child template defines a block named content.
3. The child template overrides the content block from the base template.
4. The child template uses the super() function to call the parent block.