ModuleNotFoundError: No module named 'django_toolbar'

Hello,

I’m learning how to create an application with the Django Framework but I encounter a problem when installing the debug_toolbar application.

I started by entering: pip install django-debug-toolbar

Then, as indicated on the installation page of the site (here), I entered the following elements:

INSTALLED_APPS = [

django.contrib.admin',
django.contrib.auth',
django.contrib.contenttypes',
django.contrib.sessions',
django.contrib.messages',
django.contrib.staticfiles',
debug_toolbar',

]

Then

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

urlpatterns = [
url(r’^admin/’, admin.site.urls),
]

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

and

MIDDLEWARE = [
django.middleware.security.SecurityMiddleware’,
django.contrib.sessions.middleware.SessionMiddleware’,
django.middleware.common.CommonMiddleware’,
django.middleware.csrf.CsrfViewMiddleware’,
django.contrib.auth.middleware.AuthenticationMiddleware’,
django.contrib.messages.middleware.MessageMiddleware’,
django.middleware.clickjacking.XFrameOptionsMiddleware’,
debug_toolbar.middleware.DebugToolbarMiddleware’,
]

Then finally:

INTERNAL_IPS = ['127.0.0.1]]

I get the following error message that I can’t correct:

File “/Library/Python/2.7/site-packages/django/utils/autoreload.py”, line 228, in wrapper
fn(args, **kwargs)
File “/Library/Python/2.7/site-packages/django/core/management/commands/runserver.py”, line 117, in inner_run
autoreload.raise_last_exception()
File “/Library/Python/2.7/site-packages/django/utils/autoreload.py”, line 251, in raise_last_exception
six.reraise(
_exception)
File “/Library/Python/2.7/site-packages/django/ustils/autoreload.py”, line 228, in wrapper
fn(*args, **kwargs)
File “/Library/Python/2.7/site-packages/django/init.py”, line 27, in setup
apps.populate(settings.INSTALLED_APPS)
File “/Library/Python/2.7/site-packages/django/apps/registry.py”, line 85, in populate
app_config = AppConfig.create(entry)
File “/Library/Python/2.7/site-packages/django/apps/config.py”, line 94, in create
module = import_module(entry)
File “/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/init.py”, line 37, in import_module
import(name)
ModuleNotFoundError: No module named ‘django_toolbar’

Could someone please help me?