From cee79dc0cc0994b769ec565b62f3614f1a3bcfca Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Sun, 29 Jul 2012 01:27:32 -0400 Subject: [PATCH] Add entry in FAQ about setting the default language --- docs/faq/index.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/faq/index.rst b/docs/faq/index.rst index ca09f16be6..1916656f09 100644 --- a/docs/faq/index.rst +++ b/docs/faq/index.rst @@ -212,5 +212,14 @@ http://stackoverflow.com/questions/6493985/django-auth-ldap A the moment no, but it is something being considered. +**Q: How to set the default language and have users not be able to change it? +Add the following to ``settings_local.py``::: + LANGUAGE_CODE = 'es' + + MIDDLEWARE_CLASSES = ( + + -- Copy all the classes from MIDDLEWARE_CLASSES in ``settings.py`` except for 'django.middleware.locale.LocaleMiddleware' + + )