Skip to main content

A Django application that allow you to specify the language of a page in the URL.

Project description

Suppose you have a Django website in multiple languages. The localeurl application allow you to specify the language of a page in the URL, like so: http://www.example.com/nl/company/profile. Any URLs without language prefix will be redirected to add the prefix for the default language.

Some reasons for using localeurl:

  • Search engines will index all languages.

  • Every page should have a unique URL. If you feel that different languages means different pages, then each language should get its own unique URL.

  • Setting the language for the website should be done using a POST request (because it influences subsequent page views, see Django ticket #3651). You might not want to use POST requests.

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-localeurl-1.2.tar.gz (7.5 kB view details)

Uploaded Source

File details

Details for the file django-localeurl-1.2.tar.gz.

File metadata

File hashes

Hashes for django-localeurl-1.2.tar.gz
Algorithm Hash digest
SHA256 81b0780fe4eb04729871c75fdee35ef8072fce369189f0f3e8762aab2d5b5368
MD5 788858682e3b8778586b7532d788fe21
BLAKE2b-256 e837674cc1eb3980da45b9c37262310ada58f9eb12e758cc8b0b1d0c48446ab9

See more details on using hashes here.

Supported by

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