Django Debug Toolbar

Asked

Viewed 97 times

2

good evening!! Can anyone help me with this error, I am trying to use debug_toolbar:

Traceback (most recent call last):
  File "./manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/home/sara/dev/virtual/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 338, in execute_from_command_line
    utility.execute()
  File "/home/sara/dev/virtual/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 312, in execute
    django.setup()
  File "/home/sara/dev/virtual/local/lib/python2.7/site-packages/django/__init__.py", line 18, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/home/sara/dev/virtual/local/lib/python2.7/site-packages/django/apps/registry.py", line 85, in populate
    app_config = AppConfig.create(entry)
  File "/home/sara/dev/virtual/local/lib/python2.7/site-packages/django/apps/config.py", line 86, in create
    module = import_module(entry)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
ImportError: No module named notificationdebug_toolbar

I’m following this tutorial: Django-debug-Toolbar

  • Sara, instead of installing that way, you can simply install using pip. In your virtualenv, install pip install debug_toolbar, and add to INSTALLED_APPS the debug_toolbar, only this is enough to rotate.

  • Hello Orion, good morning! I did exactly what you said, but the same mistake persists.

  • I don’t know why he’s not able to import this module, I know that the debug_toolbar works with Django 1.7 up, the original repository is: https://github.com/django-debug-toolbar/django-debug-toolbar

1 answer

1


Missing a comma separating applications notification and debug_toolbar.

INSTALLED_APPS = (
       ...
     notification,
     debug_toolbar
       ...
)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.