django-bidi-utils 1.0

context processors and filters for handling Bi-directional (BiDi) in django templates

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)

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.
MIT

Author

Meir Kriheli

Pip

django-bidi-utils==1.0

Classifiers

  • Development Status :: 5 - Production/Stable
  • Framework :: Django
  • Intended Audience :: Developers
  • License :: OSI Approved :: MIT License
  • Programming Language :: Python :: 2
  • Programming Language :: Python :: 2.6
  • Programming Language :: Python :: 2.7
  • Programming Language :: Python :: 3
  • Programming Language :: Python :: 3.3
  • Natural Language :: English
File Type Python Version Uploaded On Downloads
django-bidi-utils-1.0.tar.gz Source Oct. 19, 2013 2,109
Version Release Date
1.0 Oct. 19, 2013
0.2.1 May 18, 2009
0.2 May 17, 2009
0.1 April 28, 2009
Date Package Version Action
Aug. 24, 2015, 10:59 p.m. django-bidi-utils 0.2.1 Release Created
Aug. 24, 2015, 10:59 p.m. django-bidi-utils 1.0 Release Created
Aug. 24, 2015, 10:59 p.m. django-bidi-utils 0.2 Release Created
Aug. 24, 2015, 10:59 p.m. django-bidi-utils 0.1 Release Created
Aug. 24, 2015, 10:59 p.m. django-bidi-utils Package Created