title: Display SVG image from qrcode in Django
body: <p>As per the <code>qrcode</code> docs, I generate an SVG QR code:</p>
  
  <pre><code>import qrcode
  import qrcode.image.svg
  def get_qrcode_svg( uri ):
      img = qrcode.make( uri, image_factory = qrcode.image.svg.SvgImage)
      return img
  </code></pre>
  
  <p>And that's all fine. I get a <code>&lt;qrcode.image.svg.SvgImage object at 0x7f94d84aada0&gt;</code> object.<br>
  I'd like to display this now in Django html. I pass this object as context (as <code>qrcode_svg</code>) and try to display with <code>&lt;img src="{{qrcode_svg}}"/&gt;</code> but don't get really anywhere with this. The error shows it's trying to get the img url, but isn't there a way I can do this without saving the img etc.? Terminal output:</p>
  
  <pre><code>&gt;&gt;&gt; UNKNOWN ?????? 2020-06-16 07:38:28.295038 10.0.2.2 GET 
  /user/&lt;qrcode.image.svg.SvgImage object at 0x7f94d84aada0&gt;
  Not Found: /user/&lt;qrcode.image.svg.SvgImage object at 0x7f94d84aada0&gt;
  "GET /user/%3Cqrcode.image.svg.SvgImage%20object%20at%200x7f94d84aada0%3E HTTP/1.1" 404 32447
  </code></pre>