include tag loads a template and renders it with the current context . This is a way of “including” other templates within a template. The template name can either be a variable or a hard-coded (quoted) string, in either single or double quotes.5 Şub 2020
Read moreHow do I inherit a template in Django?
extends tag is used for inheritance of templates in django . One needs to repeat the same code again and again. Using extends we can inherit templates as well as variables.
Read moreWhat is {% include %} in Django?
{% block %}{% endblock %}: This is used to define sections in your templates , so that if another template extends this one, it’ll be able to replace whatever html code has been written inside of it.
Read more