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%}






Picture showing the Home screen
Click to Enlarge



Picture showing the About screen
Click to Enlarge


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

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250