Provides context processors and filters for handling Bi-directional (BiDi) in django templates, adding some needed functionality to Django’s LANGUAGE_BIDI template var.
Documentation
The full documentation is at http://django-bidi-utils.rtfd.org.
Quickstart
Install django-bidi-utils:
pip install django-bidi-utils
To use it in a Django project add bidiutils the project’s INSTALLED_APPS setting:
INSTALLED_APPS = (
"django.contrib.auth",
"django.contrib.contenttypes",
"django.contrib.sites",
...
"bidiutils",
...
)
To enable the context processor, add it to TEMPLATE_CONTEXT_PROCESSORS settings:
TEMPLATE_CONTEXT_PROCESSORS = (
"django.core.context_processors.auth",
"django.core.context_processors.debug",
"django.core.context_processors.i18n",
"django.core.context_processors.media",
...
"bidiutils.context_processors.bidi",
)
Features
Context processor adding to templates passed a RequestContext BiDi releated variables.
add_direction template filter, for adding direction to media resource (images, stylesheets, etc)
History
1.0 (2013-10-19)
Testing for Python 3.3, 2.7 and 2.6 Compatibility.
Removed buildout.
Re-Based on Cookiecutter.
Sphinx for docs, added more examples.
0.2.1 (2009-05-18)
Forgot CHANGELOG.rst in MANIFEST.in.
0.2 (2009-05-17)
Added template filter add_direction.
Removed README, add MAINFEST.in which includes README.rst.
0.1 (2009-04-28)
Initial release, context processors.
Metadata
Release files for django-bidi-utils 1.0
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 | |
|---|---|---|---|---|
| django-bidi-utils-1.0.tar.gz | 6.0 kB | Without provenance | Details |
Release files / django-bidi-utils-1.0.tar.gz
| Download URL | django-bidi-utils-1.0.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
28b9a30cfa294211918158443db83e888f7221b969e86f068a620680ebf2c679
|
|
BLAKE2b-256 checksum How to use checksums |
b9982c6d008fbe4d24279a3afe835d6614fa6d748b5a8a41ec055cdb4522caaa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-bidi-utils 1.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.