title: Django-Weasyprint image not rendered
body: <p>I have used Weasyprint to render my HTML file into a PDF. However,the image is not being displayed. I tried the solution for a similar problem posted here and rewrote my code as so:</p>
  
  <pre><code>response = HttpResponse(content_type='application/pdf')
  response['Content-Disposition'] = 'attachment; filename=%s.pdf' % emp_id
  pdf_doc = HTML(string=render_output,base_url=request.build_absolute_uri()).render()
  pdf_doc.write_pdf(response)
  return response
  </code></pre>
  
  <p>I have define the img tag in my template like below:</p>
  
  <pre><code>&lt;img class="logo" src="static/app/nineleaps.png" alt="Not Found"&gt;
  </code></pre>
  
  <p>The PDF does not display the image and displays "Not Found" instead of it.
  Is there a solution to this? Other html to pdf converters don't render my template as accurately as this, so I would prefer something that uses WeasyPrint only. </p>