Hi,
I'm new to django, I try to set up a site that can select language
automatically.
So, I set as below:
LANGUAGE_CODE = 'en'
TIME_ZONE = 'UTC'
USE_I18N = True
USE_L10N = False
USE_TZ = False
For now, It can select language automatically, But, The question is:
I don't wa
Hi Paul,
If you want the admin site to behave differently than the main site, you
could consider running two instances, one with the i18n activated for the
main site, and one for admin users with it disabled. In production, from a
security standpoint, it's a good idea to have the admin site run
You could write a middleware after language middleware than check if it is
a admin URL and change the language to English.
https://docs.djangoproject.com/en/1.9/topics/http/middleware/
https://docs.djangoproject.com/es/1.9/topics/i18n/translation/
El viernes, 26 de febrero de 2016, Will Harris
3 matches
Mail list logo