0

test.html

{% extends "main.html" %}
{% block content %}
<p>block test</p>
{% endblock %}

I add to main.html

{% block content %}{% endblock %}

main.html and test.html are in the same directory. enter image description here

but in the main page literally {% block content %} {% endblock %} are printed like this ↓.

enter image description here

I don't know why. I've tried {% extends "./main.html" %} but also doesn't work.

vanowm
  • 9,466
  • 2
  • 21
  • 37
  • Does this answer your question? https://stackoverflow.com/questions/17148357/including-external-html-file-to-another-html-file – Henryc17 Nov 12 '22 at 12:35
  • This is not standard HTML, it seems to be template for [django](https://docs.djangoproject.com/en/2.1/ref/templates/language) – vanowm Nov 12 '22 at 12:43

0 Answers0