title: Django get the static files URL in view
body: <p>I'm using reportlab pdfgen to create a PDF. In the PDF there is an image created by <code>drawImage</code>. For this I either need the URL to an image or the path to an image in the view. I managed to build the URL but how would I get the local path to the image?</p>
  
  <p>How I get the URL:</p>
  
  <pre><code>prefix = 'https://' if request.is_secure() else 'http://'
  image_url = prefix + request.get_host() + STATIC_URL + "images/logo_80.png"
  </code></pre>