I am building BlogApp and I am trying to run Django-Debug-Toolbar
BUT it is not showing. I have seen many answers BUT nothing worked for me.
I have installed it correctly according to the Documentation
I have added in installed apps
, middlewares
and urls
and also collecstatic
. BUT still not showing when i go to Browser.
settings.py
if DEBUG:
MIDDLEWARE += [
'debug_toolbar.middleware.DebugToolbarMiddleware',
]
INSTALLED_APPS += [
'debug_toolbar',
]
INTERNAL_IPS = ['127.0.0.1', ]
# this is the main reason for not showing up the toolbar
import mimetypes
mimetypes.add_type("application/javascript", ".js", True)
DEBUG_TOOLBAR_CONFIG = {
'INTERCEPT_REDIRECTS': False,
}
urls.py
if settings.DEBUG:
import debug_toolbar
urlpatterns += [
path('__debug__/', include(debug_toolbar.urls)),
]
Any help would be Appreciated.
Thank You in Advance
` tag, it will not get injected.
– Webucator Dec 02 '21 at 21:27