[Solved]-Django debug toolbar setup

4👍

The INTERNAL_IPS should be a list or tuple, not a string, so:

INTERNAL_IPS = ('127.0.0.1', )   # note, comma

4👍

I was having the same problems. But, I think I figured it out. I believe the step you are missing is to add ‘debug_toolbar’ to your projects setting.py INSTALLED_APPS tuple. This solves it for me. Here is a link to the article that I used as a reference.

0👍

You have to flow the command Like this:

1.install:
   python -m pip install django-debug-toolbar
2.settings.py
INSTALLED_APPS = [
    .,
    .,
    'debug_toolbar'
]
MIDDLEWARE = [
    'debug_toolbar.middleware.DebugToolbarMiddleware',
    .,
    .

    
]
INTERNAL_IPS = [
    '127.0.0.1',

]
3. urls.py
import debug_toolbar
urlpatterns = [
  path('admin/', admin.site.urls),
  path('__debug__/', include('debug_toolbar.urls')),

  ] 

Now you can see the debug_toolbarin when you hit the url.

Leave a comment