title: Setting up Mimetype when using TemplateView in Django
body: <p>Does anyboy know how do I set the desired mimetype when using TemplateView, as in:</p>
  
  <pre><code>urlpatterns = patterns('',
      url(r'^test\.txt$', TemplateView.as_view(template_name='staticpages/test.html')),
  </code></pre>
  
  <p>In this case, I want to set the mimtype as "text/plain"</p>