skillfed

django-qr-code

An application that provides tools for displaying QR codes on your Django site.

django-qr-code v4.2.0 155.2K downloads/30d#10,830 on PyPI177
Permissive license BSD 3-clause Active released

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-code

uv

uv add django-qr-code

poetry

poetry add django-qr-code

Installing 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

Development Status :: 5 - Production/StableFramework :: Django :: 4.2Framework :: Django :: 5.2Intended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseNatural Language :: EnglishProgramming Language :: Python :: 3 :: OnlyTopic :: Internet :: WWW/HTTPTopic :: Software Development :: Libraries :: Python Modules

Tags

django qr code generationqr code template tags djangogenerate qr codes in templatessvg png qr code djangoqr code caching djangocontact info qr codewifi config qr code
qr-code-generationdjango-integrationtemplate-tags

More Python Modules packages