title: How to display separate titles on each page in Django
body: <p>I have a Django website where I have separated the html files into a <code>base.html</code> file as so:
  
  </p>
  
  <pre><code>{% include 'head.html' %}
  
  &lt;body&gt;
      {% include 'nav.html' %}
  
      {% block content %}
      {% endblock content %}
  
      {% include 'footer.html' %}
  
      {% include 'scripts.html' %}
  &lt;/body&gt;
  
  
  &lt;/html&gt;
  </code></pre>
  
  <p>Due to including <code>head.html</code>, the title on each page is the same, since <code>head.html</code> has only 1 title. Here is the <code>head.html</code> file:</p>
  
  <pre><code>&lt;head&gt;
      &lt;meta charset="UTF-8"&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;
      &lt;link rel="stylesheet" href="{% static 'css/materialize.css' %}"&gt;
      &lt;link rel="stylesheet" href="{% static 'css/materialize.min.css' %}"&gt;
      &lt;link rel="stylesheet" href="{% static 'css/style.css' %}"&gt;
      &lt;link rel="stylesheet" href="{% static 'css/custom.css' %}"&gt;
      &lt;link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"&gt;
      &lt;title&gt;mytitle&lt;/title&gt;
  &lt;/head&gt;
  </code></pre>
  
  <p>But i want to display different titles for different pages and I dont know how to. Anyone have any idea?</p>