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:
- https://docs.djangoproject.com/en/3.1/releases/3.1/#django-contrib-admin
- https://docs.djangoproject.com/en/3.1/ref/contrib/admin/#django.contrib.admin.AdminSite.enable_nav_sidebar