Friday, February 26, 2016

Re: a question about django admin and language

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 running with different settings/access in any case.

Will

On Thursday, February 25, 2016 at 2:37:54 PM UTC+1, Paul Z wrote:
         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 want to it select language in Django Admin Interface, I want to it always display in English.
 
So, How to?
 
Thanks
Paul Z
                                               
                                                                                                                                                                                                                                                                       

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b612e437-c093-4c06-b7ec-e53244402b2d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment