django-localeurl 1.5
A Django application that allow you to specify the language of a page in the URL.
Downloads ↓ | Package Documentation
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.
| File | Type | Py Version | Uploaded on | Size | # downloads |
|---|---|---|---|---|---|
| django-localeurl-1.5.tar.gz (md5, pgp) | Source | 2011-08-24 | 17KB | 3861 | |
- Author: Carl Meyer
- Documentation: django-localeurl package documentation
- Home Page: http://packages.python.org/django-localeurl/
- Keywords: django i18n
- License: MIT License
-
Categories
- Development Status :: 5 - Production/Stable
- Environment :: Web Environment
- Framework :: Django
- Intended Audience :: Developers
- License :: OSI Approved :: MIT License
- Operating System :: OS Independent
- Programming Language :: Python
- Topic :: Software Development :: Libraries :: Application Frameworks
- Topic :: Software Development :: Libraries :: Python Modules
- Topic :: Software Development :: Localization
- Package Index Owner: jcassee, carljm
- DOAP record: django-localeurl-1.5.xml
