Saturday, January 28, 2017

Django Debug Toolbar installation

Hi everyone,

I've recently installed the Django Debug Toolbar for local use; I've just pushed the code online and am greeted with the below error:

[81.95.157.172] out: Traceback (most recent call last):
[81.95.157.172] out:   File "<string>", line 1, in <module>
[81.95.157.172] out:   File "/home/rjackson87/.virtualenvs/richardjackson/lib/python2.7/site-packages/django/__init__.py", line 18, in setup
[81.95.157.172] out:     apps.populate(settings.INSTALLED_APPS)
[81.95.157.172] out:   File "/home/rjackson87/.virtualenvs/richardjackson/lib/python2.7/site-packages/django/apps/registry.py", line 85, in populate
[81.95.157.172] out:     app_config = AppConfig.create(entry)
[81.95.157.172] out:   File "/home/rjackson87/.virtualenvs/richardjackson/lib/python2.7/site-packages/django/apps/config.py", line 86, in create
[81.95.157.172] out:     module = import_module(entry)
[81.95.157.172] out:   File "/usr/local/lib/python2.7/importlib/__init__.py", line 37, in import_module
[81.95.157.172] out:     __import__(name)
[81.95.157.172] out: ImportError: No module named debug_toolbar
[81.95.157.172] out:

Fatal error: run() received nonzero return code 1 while executing!

Requested: python -c "import os;os.environ['DJANGO_SETTINGS_MODULE']='richardjackson.settings';import django;django.setup();from django.conf import settings;print(settings.STATIC_ROOT)"
Executed: /bin/bash -l -c "cd /home/rjackson87/webapps/richardjackson >/dev/null && source /home/rjackson87/.virtualenvs/richardjackson/bin/activate && python -c \"import os;os.environ['DJANGO_SETTINGS_MODULE']='richardjackson.settings';import django;django.setup();from django.conf import settings;print(settings.STATIC_ROOT)\""

What should I do to resolve this?

Cheers,

Rich

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/d3657e15-1375-481c-ba6d-f3a97ed0dca5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment