From an SEO point of view in order to keep the reputation intact, it's
best that we use 301 instead of 302. I have made a simple change in
process_request() in the middleware.py file like so to enable this:
$ diff middleware.py middleware.py.new
3c3
< from django.http import HttpResponseRedirect
---
> from django.http import HttpResponseRedirect, HttpResponsePermanentRedirect
42c42,43
< return HttpResponseRedirect(locale_path)
---
> #return HttpResponseRedirect(locale_path)
> return HttpResponsePermanentRedirect(locale_path)
I've sent a proposal for this at:
http://bitbucket.org/carljm/django-localeurl/issue/6/using-301-instead-of-302-when-no-lang-is-set-in