Skip to main content

context processors and helpers for BIDI in django templates

Project description

Provides context processors and helpers to ease the handling of Bi-directional (BiDi) in django templates.

Add it to TEMPLATE_CONTEXT_PROCESORS in your project’s e.g:


The context processor defines the following template variables:

  • LANGUAGE_DIRECTION: Direction of current language (ltr or rtl)

  • LANGUAGE_START: Start of language layout (right for RTL, left for LTR)

  • LANGUAGE_END – End of language layout (left for RTL, right for LTR)

  • LANGUAGE_MARKER – Language marker entity (‏ for RTL, ‎ for LTR)

In this doucment:


Right-to-Left written language (e.g: Hebrew, Arabic)


Left-to-Right written language (e.g: English, French)

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

django-bidi-utils-0.1.tar.gz (2.8 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page