title: How to get raw query image url in Django?
body: <p>I am trying to get the URL of an image by raw queries results.
  Tell how I can get the image URL by image name.</p>
  
  <pre class="lang-py prettyprint-override"><code>cursor.execute(f"select p.id,p.name,p.price,p.sale_price,p.img,c.category from product_product p inner join product_category c on p.category_id=c.id order by p.id desc")
  </code></pre>
  
  <p>How can I get the absolute URL of p.img?</p>