Django/Python: Show pdf in a template
<p>I'm using django 1.8 in python 2.7.</p>

<p>I want to show a pdf in a template.</p>

<p>Up to know, thanks to <a href="https://stackoverflow.com/a/29718326/1395874">MKM's answer</a> I render it in a full page. </p>

<p>Do you know how to render it?</p>

<p>Here is my code:</p>

<pre><code>def userManual(request):
    with open('C:/Users/admin/Desktop/userManual.pdf', 'rb') as pdf:
        response = HttpResponse(pdf.read(), content_type='application/pdf')
        response['Content-Disposition'] = 'inline;filename=some_file.pdf'
        return response
    pdf.closed
</code></pre>