1$ python -m pip install -e git+https://github.com/jazzband/django-debug-toolbar.git#egg=django-debug-toolbar
2
1MIDDLEWARE = [
2 # ...
3 'debug_toolbar.middleware.DebugToolbarMiddleware',
4 # ...
5]
6
1INSTALLED_APPS = [
2 # ...
3 'django.contrib.staticfiles',
4 # ...
5 'debug_toolbar',
6]
7
8STATIC_URL = '/static/'
9
1import debug_toolbar
2from django.conf import settings
3from django.urls import include, path
4
5urlpatterns = [
6 ...
7 path('__debug__/', include(debug_toolbar.urls)),
8]
9