[Django]-Django-Debug-Toolbar not showing(disallowed MIME type)

8👍

this work for me!

in settings.py

import mimetypes

mimetypes.add_type("application/javascript", ".js", True)

DEBUG_TOOLBAR_CONFIG = {
    "INTERCEPT_REDIRECTS": False,
}

0👍

Try including static files in urls.py:

from django.conf import settings
    from django.conf.urls.static import static
    
    urlpatterns = [
        # ... the rest of your URLconf goes here ...
    ] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)

OR

Try changing the version of django-debug-toolbar. I had the same problem on django-debug-toolbar-3.1.1 and just switched to 2.2 and it worked

Leave a comment