django-3.1

Django 3.1 | Admin page appearance issue

♀尐吖头ヾ 提交于 2021-02-15 11:23:18
问题 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. Thanks in advance 回答1: 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 Reference:

Django 3.1 | Admin page appearance issue

匆匆过客 提交于 2021-02-15 11:23:10
问题 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. Thanks in advance 回答1: 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 Reference:

After an upgrade from Django 1.11 to Django 3.1 django admin shows list of models on top of internal items

余生长醉 提交于 2021-01-29 14:24:16
问题 After an upgrade from Django 1.11 (python2.7) to Django 3.1 (python3.6) on Centos7, django admin still shows the list of models on top of the page, above the list of items in this model. Before the upgrade, the admin showed everything correctly: you see a list, you enter an item and see a screen related to this item, no more lists. Please see the related screenshots: Please advise how to solve this. 回答1: maybe you need to re-run collectstatic command python manage.py collectstatic refer to