Simple switch tag for Django templates.
Project description
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'
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for django-switch-templatetag-2.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01afd31d1fec22ae4455e9b74217e9112e4854d6a138795491b5980bba993563 |
|
MD5 | 412ba8ddd52494006f3e9c42f6d1b33a |
|
BLAKE2b-256 | 8c96ee18b8ca90b0f3622f5786446568356839a65150120cce2526e169277f6b |