Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Django ORM Same Old ORM django-debug-toolbar

Omar Albeik
Omar Albeik
11,991 Points

Instructions on how to install the debug toolbar on a local machine are not clear, I'm using Django 1.11.2

I spent an hour now trying to install the debugging toolbar with no success, Kenneth Love would you please clarify how to do that, on a local machine, I don't use Workspaces :) Thanks!

3 Answers

Kenneth Love
STAFF
Kenneth Love
Treehouse Guest Teacher

Did you look at the instructions? It's mostly install the package, add the URLs, add the middleware, set the INTERNAL_IPS.

the instructions in the video are outdated, maybe consider to adding a link in the teacher's notes. I had to add the Internal IPs for it to work

Omar Albeik
Omar Albeik
11,991 Points

Looks like I forgot to add code in URLconf to urls.py, once I added it I saw the debugging bar :)

from django.conf import settings

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

Thanks!