django-localeurl 1.5

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

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: 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.

About Django

Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.

Here are some key features of "Django":

Object-relational mapper:

· Define your data models entirely in Python. You get a rich, dynamic database-access API for free - but you can still write SQL if needed.

Automatic admin interface:

· Save yourself the tedious work of creating interfaces for people to add and update content. Django does that automatically, and it's production-ready.

Elegant URL design:

· Design pretty, cruft-free URLs with no framework-specific limitations. Be as flexible as you like.

Template system:

· Use Django's powerful, extensible and designer-friendly template language to separate design, content and Python code.

Cache system:

· Hook into memcached or other cache frameworks for super performance - caching is as granular as you need.


· Django has full support for multi-language applications, letting you specify translation strings and providing hooks for language-specific functionality.

last updated on:
August 26th, 2011, 3:08 GMT
developed by:
Joost Cassee
license type:
MIT/X Consortium License 
ROOT \ Internet \ HTTP (WWW)


In a hurry? Add it to your Download Basket!

user rating



Add your review!