How to Generate a QR Code in Django

Timur Bakibayev, Ph.D.
Geek Culture
Published in
3 min readApr 26, 2021

--

Passing a QR code as an SVG code

This tiny project will generate a QR code for any text and pass it to the HTML template as an SVG code.

SVG is a very convenient medium for URLs or other text. This small demo demonstrates a few things:

  1. How to pass a tag to the HTML
  2. How to generate a QR code

--

--