19.1. Django Debug Toolbar
19.1.1. Install
$ python -m pip install django-debug-toolbar
Append to myproject/settings.py
:
DEBUG = True
INSTALLED_APPS += ['debug_toolbar']
MIDDLEWARE += ['debug_toolbar.middleware.DebugToolbarMiddleware']
INTERNAL_IPS = ['127.0.0.1']
Append to myproject/urls.py
:
from django.urls import include, path
from django.conf import settings
if settings.DEBUG:
urlpatterns += [path('__debug__/', include('debug_toolbar.urls'))]