django-qr-code
An application that provides tools for displaying QR codes on your Django site.
What it is and what it does
Django QR Code is a Django application that integrates QR code generation into your templates and views. It wraps the Segno QR code generator library to provide template tags and a Python API for creating QR codes as embedded SVG or PNG images. The package requires no database access and focuses on rendering QR codes directly in HTML templates or serving them as image files.
You use it by adding the app to your Django project, loading its template tags, and then calling simple tags like `qr_from_text` to embed QR codes in your pages. It supports customization of size, error correction level, border width, and other parameters. The package includes caching for performance and can serve QR code images with URL protection and user authentication, making it suitable for use cases like contact information sharing, Wi-Fi configuration, or competition tracking.
Use it for:
- Embed contact information QR codes in Django templates for easy phone book imports.
- Generate Wi-Fi configuration QR codes for guest networks or event access.
- Create authentication QR codes for judges or staff to scan during events.
- Serve cached QR code images with URL protection for secure sharing.
- Generate URLs pointing to QR code images for use in emails or external systems.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Generates QR codes as embedded SVG or PNG images in Django templates, with customization options for size, error correction, border, and caching support.
Yes. The package is production-stable, actively maintained with recent commits, has low install friction, and carries a permissive BSD license. It solves a clear problem for Django developers who need QR code generation in templates. No known vulnerabilities. Install it if you need QR codes in a Django project.
Install
django-qr-code on PyPI
pip
pip install django-qr-codeuv
uv add django-qr-codepoetry
poetry add django-qr-codeInstalling django-qr-code
Before you install
Low install friction with a single wheel distribution. Actively maintained with recent commits and production-stable status; requires Python >= 3.10.
License in practice
BSD 3-clause license is permissive, allowing commercial and private use with minimal restrictions.
Quickstart
pip install django-qr-code
# In settings.py
INSTALLED_APPS = [
'qr_code',
]
# In template
{% load qr_code %}
{% qr_from_text "Hello World!" size="T" %}
Requires Python >= 3.10 and an existing Django project.
Verify before relying
- Performance characteristics of cached QR code serving under load.
- Specific supported Django versions beyond 4.2 and 5.2 mentioned in classifiers.
- Details on URL protection and authentication mechanisms for secure image serving.
Package facts
| License | BSD 3-clause (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — segno, django, pydantic |
| Maintenance | actively maintained — 463 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 155,155/month — #10,830 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: django_qr_code-4.2.0-py3-none-any.whl
Keywords: qr, code, django
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
qrcodeGenerates QR codes as images (PNG, SVG) or…
permissive · top 1,000 on PyPI
segnoGenerates QR codes and Micro QR codes…
permissive · top 5,000 on PyPI
PyQRCodePyQRCode generates QR codes in pure Python and…
permissive · top 15,000 on PyPI
pyStrichpyStrich generates 1D and 2D barcodes (Code 39,…
permissive · top 15,000 on PyPI
treepoemGenerates barcodes and QR codes as image…
permissive · top 5,000 on PyPI
zxing-cppReads and writes barcodes and QR codes in…
permissive · top 5,000 on PyPI
pdf417genEncodes text and binary data into PDF417 2D…
permissive · top 15,000 on PyPI
django-settings-exportProvides a Django template context processor…
permissive · top 15,000 on PyPI
qrdetDetects and segments QR codes in images using a…
permissive · top 15,000 on PyPI
easy-thumbnailsGenerates and manages thumbnail images for…
permissive · top 15,000 on PyPI