title: application/pdf pisa __init__() got an unexpected keyword argument 'mime type'
body: <p>this is the code:</p>
  
  <pre><code>def render_to_pdf(template_src, context_dict):
       template = get_template(template_src)
       context = Context(context_dict)
       html  = template.render(context)
       result = StringIO.StringIO()
       pdf = pisa.pisaDocument(StringIO.StringIO(html.encode("UTF-8")), result)
       if not pdf.err:
          return HttpResponse(result.getvalue(), mimetype='application/pdf')
          return HttpResponse('We had some errors&lt;pre&gt;%s&lt;/pre&gt;' % escape(html))
  </code></pre>
  
  <p>I use django 1.7 and the error is </p>
  
  <p><strong>init</strong>() got an unexpected keyword argument 'mimetype'</p>
  
  <p>Request Method:     GET
  Request URL:    <a href="http://127.0.0.1:8000/admin/amministrazione/ddts/stampa/1/" rel="nofollow">http://127.0.0.1:8000/admin/amministrazione/ddts/stampa/1/</a>
  Django Version:     1.7.7
  Exception Type:     TypeError
  Exception Value:    </p>
  
  <p><strong>init</strong>() got an unexpected keyword argument 'mimetype'</p>
  
  <p>Exception Location:     /home/stefano/.virtualenvs/company2/local/lib/python2.7/site-packages/django/http/response.py in <strong>init</strong>, line 318
  Python Executable:  /home/stefano/.virtualenvs/company2/bin/python
  Python Version:     2.7.6</p>