<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 中获取当前语言?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  groupby multiple coords along a single dimension in xarray(在xarray中按单个维度的多个坐标分组)
                  Group by and Sum in Pandas without losing columns(Pandas中的GROUP BY AND SUM不丢失列)
                  Group by + New Column + Grab value former row based on conditionals(GROUP BY+新列+基于条件的前一行抓取值)
                  Groupby and interpolate in Pandas(PANDA中的Groupby算法和插值算法)
                  Pandas - Group Rows based on a column and replace NaN with non-null values(PANAS-基于列对行进行分组,并将NaN替换为非空值)
                  Grouping pandas DataFrame by 10 minute intervals(按10分钟间隔对 pandas 数据帧进行分组)
                    <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'>