pip install django-debug-toolbar
INSTALLED_APPS = [
...
"debug_toolbar",
...
]
MIDDLEWARE = [
"debug_toolbar.middleware.DebugToolbarMiddleware",
...
...
]
INTERNAL_IPS = [
# ...
"127.0.0.1",
# ...
]
urlpatterns = [
path('admin/', admin.site.urls),
]
if settings.DEBUG:
import debug_toolbar
urlpatterns += [
path("__debug__/", include("debug_toolbar.urls")),
]