title: Django template: Why block in included template can't be overwritten by child template?
body: <p>To illustrate my question more clearly, let's suppose I have a include.html template with content:</p>
  
  <pre><code>{% block test_block %}This is include{% endblock %}
  </code></pre>
  
  <p>I have another template called parent.html with content like this:</p>
  
  <pre><code>This is parent
  
  {% include "include.html" %}
  </code></pre>
  
  <p>Now I create a templated called child.html that extends parent.html:</p>
  
  <pre><code>{% extends "parent.html" %}
  {% block test_block %}This is child{% endblock %}
  </code></pre>
  
  <p>My idea is that when rendering child.html, the test_block in child.html can overwrite the one in include.html. As per my understanding, when a template is included, it is included as it is. So in my case, I think parent.html equals to:</p>
  
  <pre><code>This is parent
  
  {% block test_block %}This is include{% endblock %}
  </code></pre>
  
  <p>So child.html should be able to overwrite test_block. But looks like it can't. Why? Is there a workaround?</p>