Skip to main content

Django i18n url lets you manage your multilingual url using Django. You can change the language and stay on the same page.

Getting Started

Install django-i18nurl:

pip install django-i18nurl

Add it to your INSTALLED_APPS settings:

INSTALLED_APPS = (
    '...',
    'i18nurl',
)

Using it

Python

Use it in Python code:

from i18nurl import reverse_i18n

url_de = reverse_i18n('app:home', 'de')

Django template

Use it as a templatetag:

{% load i18nurl %}
{% i18nurl 'app:home' 'de' %}

Get the current page in other languages:

{% load i18nurl %}
{% current_i18nurl 'de' %}

Note: to use current_i18nurl template tag you will need the request context processors:

TEMPLATE_CONTEXT_PROCESSORS = (
    "...",
    "django.core.context_processors.request",
    "...",
)

Release files for django-i18nurl 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-i18nurl 0.1
File Size Uploaded
django-i18nurl-0.1.tar.gz 8.5 kB Details

Release files / django-i18nurl-0.1.tar.gz

Download URL django-i18nurl-0.1.tar.gz
Size 8.5 kB
Tags Source
SHA-256 checksum
How to use checksums
1816d8a9961c4a99d885656715b814b24a84ba3c590f26408fa2410486b1160c
BLAKE2b-256 checksum
How to use checksums
d682e6151ae281d389cce5c1b628d8f320418f13491f64bc1afa3971b19d8f9b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page