django-templatetags-extensions
Django TemplateTags Extensions
Installation
pip install django-templatetags-ext
Settings.py
INSTALLED_APPS = (
...
'django_templatetags_ext',
...
)
Usage
{% load templatehelper %}
{{ googol|googolformat }}
{{ googol|googolformat:ndigits }}
{{ googol|googolformat2 }}
{{ googol|googolformat2:ndigits }}
{{ price|fen2yuan }}
{{ price|fen2yuan:ndigits }}
{{ value|truncatechars2:length }}
{{ value|truncatechars2:'length,truncate' }}
{{ value|truncatewidth:length }}
{{ value|truncatewidth:'length,truncate' }}
{{ value|remove_line_break }}
{{ value|remove_line_break:repl }}
Metadata
Release files for django-templatetags-ext 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-templatetags-ext-1.0.3.tar.gz | 2.7 kB | Without provenance | Details for django-templatetags-ext-1.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_templatetags_ext-1.0.3-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for django_templatetags_ext-1.0.3-py2.py3-none-any.whl |
Total release size: 5.9 kB
Security for django-templatetags-ext 1.0.3
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.