Django can' t load Module 'debug_toolbar': No module named 'debug_toolbar'

Browning M. picture Browning M. · Feb 4, 2019 · Viewed 13.9k times · Source

When I try running the project, Django can not load the django-debug-toolbar plugin for some reason. Error message says:

web_1  | ModuleNotFoundError: No module named 'debug_toolbar'

Here is my settings.py

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

MIDDLEWARE = [
    # ...
    'debug_toolbar.middleware.DebugToolbarMiddleware',
    # ...
]

INTERNAL_IPS = ('127.0.0.1', '192.168.0.1',)

Answer

vinodsesetti picture vinodsesetti · Feb 4, 2019

if you are not installed the django-debug-toolbar please install with help of below command

pip install django-debug-toolbar