title: Static images are not rendering in production on pdf using wkhtmltopd in django application
body: <p>I am using pdfkit to convert html into pdf. Everything seems to be working perfectly in development, but after building a docker image and running it locally, the pdf is generated but images are not loaded.</p>
  <p>Here is my how I am rendering image, which seems to be working fine locally:</p>
  <pre><code>&lt;img src=&quot;{{ host_url }}/static/tcs.jpg&quot; style=&quot;width:100px;display:block;&quot; /&gt;
  </code></pre>
  <p>Here's my code in django view function:</p>
  <pre><code>template = get_template(&quot;tcs_invoice.html&quot;)
  data = {
    &quot;host_url&quot;: settings.HOST
  }
  html = template.render(data)  # Renders the template with the context data.
  pdf = pdfkit.from_string(html, False)
   return HttpResponse(pdf, content_type='application/pdf')
  </code></pre>
  <p>I have installed wkhtmltopdf on my docker container. When I hit the url in the browser the image is shown. why does it not render in production mode.</p>