python - How i get the current language in django? -


How do I obtain the current language in a model or admin in the current thread?

Special jobs are of interest django.utils.translation.get_language () See the current thread which gives the language used.


Comments

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -