Django - template extending
Template extending means you can reuse same parts of HTML for different pages of website and prevent you from code repetition.
How To
- Create a base template
templates/base.html - Replace the part which content is dependent on other templates with
{% block content %}{% endblock %} - In other templates, extend
base.htmland code what should be inside of{% block content %}{% endblock %}