<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 中获取当前语言?

        How can I get the current language in Django?(如何在 Django 中获取当前语言?)
        <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 中获取当前语言?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Pythonic and efficient way of finding adjacent cells in grid(在网格中查找相邻单元格的 Pythonic 和有效方法)
                  map a hexagonal grid in matplotlib(在 matplotlib 中映射六边形网格)
                  Execute arbitrary python code remotely - can it be done?(远程执行任意 python 代码 - 可以吗?)
                  Python - Plotting colored grid based on values(Python - 根据值绘制彩色网格)
                  Is there a GUI design app for the Tkinter / grid geometry?(是否有 Tkinter/网格几何图形的 GUI 设计应用程序?)
                  tkinter Canvas Scrollbar with Grid?(带有网格的 tkinter 画布滚动条?)
                    <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>

                            <tbody id='DDs90'></tbody>

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

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