1. <small id='ecqXA'></small><noframes id='ecqXA'>

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

      <legend id='ecqXA'><style id='ecqXA'><dir id='ecqXA'><q id='ecqXA'></q></dir></style></legend>

      1. Django 3.1 |管理页面外观问题

        时间:2023-11-08
          <bdo id='NYS51'></bdo><ul id='NYS51'></ul>

          1. <small id='NYS51'></small><noframes id='NYS51'>

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

                <tbody id='NYS51'></tbody>
            1. <tfoot id='NYS51'></tfoot>
                • 本文介绍了Django 3.1 |管理页面外观问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  今天我已将 Django 更新到最新版本 3.1.

                  Today I have updated Django to latest version 3.1.

                  但由于某种原因,当我登录到管理页面时,我只能看到一个看起来很奇怪的管理页面.

                  But for some reason when the logged in to admin page, all I cans see is a weird looking admin page.

                  admin.py

                  谁能帮我出什么问题或者我需要修改什么才能回到原来的管理页面.

                  Can someone help me what went wrong or what are things I need to modify to get back to original admin page.

                  提前致谢

                  推荐答案

                  在您项目的根 urls.py 文件中,只需添加以下代码即可禁用新的侧边栏功能.

                  In your projects' root urls.py file, simply add the below code to disable the new sidebar feature.

                  from django.contrib import admin
                  
                  admin.autodiscover()
                  admin.site.enable_nav_sidebar = False
                  

                  参考:

                  1. https://docs.djangoproject.com/en/3.1/releases/3.1/#django-contrib-admin
                  2. https://docs.djangoproject.com/en/3.1/ref/contrib/admin/#django.contrib.admin.AdminSite.enable_nav_sidebar

                  这篇关于Django 3.1 |管理页面外观问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:如果在下拉列表中选择了特定值,则 Django 管理员显示/隐藏字段 下一篇:Django Admin 的“现场查看"指向 example.com 而不是我的域

                  相关文章

                    <bdo id='uwm9Q'></bdo><ul id='uwm9Q'></ul>
                  <tfoot id='uwm9Q'></tfoot>

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

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

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