The localeurl Django application allows you to specify the language of a page in the URL.
Suppose you have a Django website in multiple languages. Using localeurl, without modifying your URLconfs, you can have URLs like this: http://www.example.com/nl/company/profile. Any URLs without a language prefix will be redirected to add the prefix for the default language (or, optionally, the language preferred in the user’s browser settings).
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.
If you don’t set the language via the 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 prefer a simple link for changing the language, and localeurl allows this.
You can install localeurl with pip:
pip install django-localeurl
or install the in-development version:
pip install django-localeurl==dev
See the full documentation.
Metadata
Release files for django-localeurl 1.4
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-localeurl-1.4.tar.gz | 10.6 kB | Without provenance | Details |
Release files / django-localeurl-1.4.tar.gz
| Download URL | django-localeurl-1.4.tar.gz |
|---|---|
| Size | 10.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
14a1872ce4c33ca6589626717ea5905f8588dff467395e3a5f60fdc8bc6c9428
|
|
BLAKE2b-256 checksum How to use checksums |
4161c1294e907c387a41a2cd709d5498de10b733d29bf879ee5f8e892be1e1d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-localeurl 1.4
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.