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 |管理页面外观问题

        Django 3.1 | Admin page appearance issue(Django 3.1 |管理页面外观问题)
          <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 |管理页面外观问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  What happens when you compare 2 pandas Series(当你比较 2 个 pandas 系列时会发生什么)
                  Quickly find differences between two large text files(快速查找两个大文本文件之间的差异)
                  Python - Compare 2 files and output differences(Python - 比较 2 个文件和输出差异)
                  Why do comparisions between very large float values fail in python?(为什么在 python 中非常大的浮点值之间的比较会失败?)
                  Dictionary merge by updating but not overwriting if value exists(字典通过更新合并,但如果值存在则不覆盖)
                  Find entries of one text file in another file in python(在python中的另一个文件中查找一个文本文件的条目)
                    <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>

                            <tbody id='uwm9Q'></tbody>
                            <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>