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


Posted By  -  Karan Gupta
 
Posted On  -  Wednesday, June 19, 2019

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250