[Python] django-debug-toolbar not showing up

Discussão em 'Python' iniciado por Stack, Agosto 11, 2025.

  1. Stack

    Stack Membro Participativo

    I looked at other questions and can't figure it out...

    I did the following to install django-debug-toolbar:

    1. pip install django-debug-toolbar
    2. added to middleware classes:

    MIDDLEWARE_CLASSES = (
    'django.middleware.common.CommonMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    # Uncomment the next line for simple clickjacking protection:
    # 'django.middleware.clickjacking.XFrameOptionsMiddleware',
    'debug_toolbar.middleware.DebugToolbarMiddleware',
    )​

    3 Added INTERNAL_IPS:


    INTERNAL_IPS = ('174.121.34.187',)
    ​

    4 Added debug_toolbar to installed apps

    I am not getting any errors or anything, and the toolbar doesn't show up on any page, not even admin.

    I even added the directory of the debug_toolbar templates to my TEMPLATE_DIRS

    Continue reading...

Compartilhe esta Página