Add entry in FAQ about setting the default language

This commit is contained in:
Roberto Rosario
2012-07-29 01:27:32 -04:00
parent 3b44c785ca
commit cee79dc0cc

View File

@@ -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'
)