django-tool-bar code example
Example 1: django-tool-bar
import debug_toolbar
from django.conf import settings
from django.urls import include, path
urlpatterns = [
...
path('__debug__/', include(debug_toolbar.urls)),
]
Example 2: django-tool-bar
INSTALLED_APPS = [
'django.contrib.staticfiles',
'debug_toolbar',
]
STATIC_URL = '/static/'
Example 3: django-tool-bar
$ python -m pip install -e git+https:
Example 4: django-tool-bar
$ python -m pip install django-debug-toolbar
Example 5: django-tool-bar
INTERNAL_IPS = [
'127.0.0.1',
]
Example 6: django-tool-bar
MIDDLEWARE = [
'debug_toolbar.middleware.DebugToolbarMiddleware',
]