title: Django HTML: how do I make a "go home" link?
body: <p>Here is the file structure of my project.</p>
  <p><a href="https://i.stack.imgur.com/4FzF6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4FzF6.png" alt="enter image description here" /></a></p>
  <p>I am adding a link in testpage.html, and I want it to take the user back to the root directory (<a href="http://127.0.0.1:8000" rel="nofollow noreferrer">http://127.0.0.1:8000</a> on localhost server) which is configured to use index.html as the homepage under pages &gt; templates &gt; index.</p>
  <p>testpage.html is below. the link is in line 3 (currently empty):</p>
  <pre><code> &lt;h1 class='list'&gt;Classes&lt;/h1&gt;
          {% if mydata %}
          &lt;a href=&quot;&quot;&gt;Go home&lt;/a&gt;
          {% endif %}
         {% for k in mydata  %}
          &lt;table border=&quot;1&quot;&gt;
              &lt;thead&gt;
                  &lt;th&gt;Team&lt;/th&gt;
                  &lt;th&gt;Name&lt;/th&gt;
                  &lt;th&gt;ClassCode&lt;/th&gt;
              &lt;/thead&gt;
              &lt;tr&gt;
                  &lt;td&gt;{{k.Team}}&lt;/td&gt;
                  &lt;td&gt;{{k.Name}}&lt;/td&gt;
                  &lt;td&gt;{{k.ClassCode}}&lt;/td&gt;
              
              &lt;/tr&gt;
              
              
          &lt;/table&gt;
          {% endfor %}
  {% endblock %}
  </code></pre>