title: Serve raw, dynamic html content from file in Django?
body: <p>I can generate html from a file on the fly and return like this:</p>
  
  <pre><code>from django.http import HttpResponse
  response = HttpResponse(mimetype="text/html")
  content = "".join(open(filename).readlines())
  response._set_content(content)
  return response
  </code></pre>
  
  <p>but is there a better, built in way, in Django 1.5?</p>