Skip to main content

django-switch-templatetag

A simple “switch” statement for Django templates.

Installation

  • Install to PYTHONPATH, etc.

Then either:

  • Add switch_templatetag to settings.INSTALLED_APPS and then use:

    {% load switch_templatetag %}

    … in your templates.

Or:

  • Add switch_templatetag.templatetags.switch to your BUILTINS entry in settings.TEMPLATES (Django 1.9)

Or:

  • Add to builtins (< Django 1.9) with in some models.py:

    from django.template.base import add_to_builtins
    add_to_builtins('switch_templatetag.templatetags.switch'

Metadata

Release files for django-switch-templatetag 2.0.4

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-switch-templatetag 2.0.4
File Size Uploaded Provenance
django-switch-templatetag-2.0.4.tar.gz 3.3 kB Without provenance Details

Release files / django-switch-templatetag-2.0.4.tar.gz

Download URL django-switch-templatetag-2.0.4.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
bf86daac99369b169399f547efefcb3abd75b704c2f7498384fd1090a1768f80
BLAKE2b-256 checksum
How to use checksums
47fbae2a943b228704c506f7b716a431cc2a2422c736de6fc9a8942dde819bd3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-switch-templatetag 2.0.4

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