Adding Django debug_toolbar

from: http://django-debug-toolbar.readthedocs.io/en/stable/installation.html

To install and activate debug_toolbar,

$ pip install django-debug-toolbar

add ‘debug_toolbar’ to INSTALLED_APPS settings. Make sure the ‘django.contrib.staticfiles’ is properly set up.

INSTALLED_APPS = [
  #...
  'django.contrib.staticfiles',
  #...
  'debug_toolbar',
]

STATIC_URL = '/static/'

Add Debug Toolbar’s URLs to the projects’s urls.py

from django.conf import settings
from django.conf.urls import include, url

if settings.DEBUG:
  import debug_toolbar
  urlpatterns = [
    url(r'^__debug__/', include(debug_toolbar.urls)),
  ] += urlpatterns

Finally, the testing IPs should be defined in INTERNAL_IPS in settings as

INTERNAL_IPS = [
  '127.0.0.1',
]