Articles → DJANGO → Include Tag In Templates In Django

Include Tag In Templates In Django






Purpose





Example






<ul><li><a href="google.com">Google</a></li><li><a href="gyansangrah.com">Gyansangrah</a></li></ul>




<html><head><title>this is the test title</title></head><body><h1>Title of the page</h1>
    {% include 'menu.html' %}
    
        <div id="container">
        {% block content%}
           This is the test content
            <br />
        {% endblock content%}
    
        </div></body></html>



Output


Picture showing the output of the Include tag in templates in Django
Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Thursday, June 20, 2019

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250