<i id='uF73T'><tr id='uF73T'><dt id='uF73T'><q id='uF73T'><span id='uF73T'><b id='uF73T'><form id='uF73T'><ins id='uF73T'></ins><ul id='uF73T'></ul><sub id='uF73T'></sub></form><legend id='uF73T'></legend><bdo id='uF73T'><pre id='uF73T'><center id='uF73T'></center></pre></bdo></b><th id='uF73T'></th></span></q></dt></tr></i><div id='uF73T'><tfoot id='uF73T'></tfoot><dl id='uF73T'><fieldset id='uF73T'></fieldset></dl></div>
    • <bdo id='uF73T'></bdo><ul id='uF73T'></ul>
  • <legend id='uF73T'><style id='uF73T'><dir id='uF73T'><q id='uF73T'></q></dir></style></legend>

      <tfoot id='uF73T'></tfoot>

        <small id='uF73T'></small><noframes id='uF73T'>

      1. 如何在 Django 中获取当前语言?

        时间:2023-07-23
        <legend id='mvD50'><style id='mvD50'><dir id='mvD50'><q id='mvD50'></q></dir></style></legend>
        <i id='mvD50'><tr id='mvD50'><dt id='mvD50'><q id='mvD50'><span id='mvD50'><b id='mvD50'><form id='mvD50'><ins id='mvD50'></ins><ul id='mvD50'></ul><sub id='mvD50'></sub></form><legend id='mvD50'></legend><bdo id='mvD50'><pre id='mvD50'><center id='mvD50'></center></pre></bdo></b><th id='mvD50'></th></span></q></dt></tr></i><div id='mvD50'><tfoot id='mvD50'></tfoot><dl id='mvD50'><fieldset id='mvD50'></fieldset></dl></div>
          <bdo id='mvD50'></bdo><ul id='mvD50'></ul>

          <small id='mvD50'></small><noframes id='mvD50'>

                <tbody id='mvD50'></tbody>

              <tfoot id='mvD50'></tfoot>

                • 本文介绍了如何在 Django 中获取当前语言?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  如何在模型或管理员的当前线程中获取当前语言?

                  How can I get the current language in the current thread in a model or in the admin?

                  推荐答案

                  特别感兴趣的函数是 django.utils.translation.get_language(),它返回当前线程中使用的语言.请参阅文档.

                  Functions of particular interest are django.utils.translation.get_language() which returns the language used in the current thread. See documentation.

                  这篇关于如何在 Django 中获取当前语言?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:用于定义选择字段的元组列表中前导下划线的含义? 下一篇:尝试从 Django 模板更改语言的问题

                  相关文章

                    <tfoot id='DDs90'></tfoot>
                    • <bdo id='DDs90'></bdo><ul id='DDs90'></ul>
                    <i id='DDs90'><tr id='DDs90'><dt id='DDs90'><q id='DDs90'><span id='DDs90'><b id='DDs90'><form id='DDs90'><ins id='DDs90'></ins><ul id='DDs90'></ul><sub id='DDs90'></sub></form><legend id='DDs90'></legend><bdo id='DDs90'><pre id='DDs90'><center id='DDs90'></center></pre></bdo></b><th id='DDs90'></th></span></q></dt></tr></i><div id='DDs90'><tfoot id='DDs90'></tfoot><dl id='DDs90'><fieldset id='DDs90'></fieldset></dl></div>

                    1. <legend id='DDs90'><style id='DDs90'><dir id='DDs90'><q id='DDs90'></q></dir></style></legend>

                      <small id='DDs90'></small><noframes id='DDs90'>