Geek Culture
Published in

Geek Culture

How to Generate a QR Code in Django

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

--

--

--

A new tech publication by Start it up (https://medium.com/swlh).

Recommended from Medium

[PL/SQL] Oracl Records and Collections

50 popular JavaScript open-source projects on GitHub in 2018

Making a Simple D3 Visualization &The Stupid JS Mistakes I Made

FLIP animation in React

spock-rock game with Javascript

What is React?

meme-js

JavaScript 30- Day 15 Study Notes

LeetCode Problem Solution #27: Remove Element

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Timur Bakibayev

Timur Bakibayev

Professor, Ph.D. in CS, Almaty Management University

More from Medium

Understanding Templates in Django | part 1

Django Templates

Deploying react and django rest framework with nginx and gunicorn

An Introduction to Signals in Django

How to integrate Stripe in Django