Articles → DJANGO → Block.Super Tag In Templates In Django
Block.Super Tag In Templates In Django
Example
<html>
<head>
<title>this is the test title</title>
</head>
<body>
<h1>Title of the page</h1>
<div id="container"> {% block content%} This is the test content
<br /> {% endblock content%} </div>
</body>
</html>
{% extends "base.html" %}
{% block content%}
{{ block.super}}
This is the home page
{% endblock content%}
Click to Enlarge
Click to Enlarge