Skip to main content

django-qrcode2

提供qrcode相关的filter和view

Quick start

  1. Install:

    pip install django_qrcode2
  2. Add “qrcode2” to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        ...
        'qrcode2',
    ]
  3. [Optional] Include the qrcode2 URLconf in your project urls.py like this:

    url(r'^qrcode/', include('qrcode2.urls')),
  4. No migration needed

  5. Add filter to template like this:

    {% load qrcode2 %}
    
    <!-- if an view with name 'qrcode' is provided, 'src' will be an url, otherwise it's an base64 data blob -->
    <img src="{{ 'some text' | qrcode_src }}">
    
    <!-- insert an <img> with template inclusion -->
    {% include 'qrcode2/img.html' with text='hello' %}

Metadata

Release files for django-qrcode2 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-qrcode2 0.5.0
File Size Uploaded Provenance Actions
django-qrcode2-0.5.0.tar.gz 4.4 kB Without provenance Details for django-qrcode2-0.5.0.tar.gz

Release files / django-qrcode2-0.5.0.tar.gz

Download URL django-qrcode2-0.5.0.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
8de9dbd5fd7a543d1200aa7ed3d201037f3d16321089c9deec0bf5648c967fd6
BLAKE2b-256 checksum
How to use checksums
f7dcea3314ff486645af30162e1946fc5e8a3e607ef778579133fcb15c66afc1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

Security for django-qrcode2 0.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page