title: Django: How to get the root path of a site in template?
body: <p>I want to design a go back home button for my site and how can I get the root path of my site in the template so I can do something like this:</p>
  
  <pre><code>&lt;a href="{{ root_url }}"&gt;Go back home&lt;/a&gt;
  </code></pre>
  
  <p>Or I should first figure out the path in my views and then pass it to the template to render by some context.
  Thanks.</p>