Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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
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