title: Render Template Exactly with Django
body: <p>I'm a complete newb to Django working on a sample app. It appears that I am missing something with how templates work in Django.</p>
  
  <p>I have a template file as follows:</p>
  
  <pre><code>&lt;!DOCTYPE HTML&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;Zabba Dabba Doo&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;h1&gt;Zabba Dabba Doo&lt;/h1&gt;
  
  &lt;form action="/comparison/search/" method="get"&gt;
  Search: &lt;input type="text" name="search_terms" /&gt;
  &lt;input type="submit" value="Search" /&gt;
  &lt;/form&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>The views.py method is here:</p>
  
  <pre><code>def home(request):
     t = loader.get_template('comparison/index.html')
     return HttpResponse(t)
  </code></pre>
  
  <p>I am expecting the views method to render the html from my template, but when I test it, this is the resulting output:</p>
  
  <pre><code>&lt;Text Node: '&lt;!DOCTYPE HTML&gt;
  &lt;html&gt;
  &lt;h'&gt;
  </code></pre>
  
  <p>Can anyone explain to me how to make it so my template is displayed exactly? Any help is appreciated.</p>