urls.py
path('__debug__/', include(debug_toolbar.urls))
if DEBUG:
INTERNAL_IPS = ('127.0.0.1')
MIDDLEWARE += ('debug_toolbar.middleware.DebugToolbarMiddleware',)
INSTALLED_APPS += ('debug_toolbar',)
DEBUG_TOOLBAR_PANELS = [
'debug_toolbar.panels.timer.TimerPanel',
'debug_toolbar.panels.settings.SettingsPanel',
'debug_toolbar.panels.sql.SQLPanel',
'debug_toolbar.panels.staticfiles.StaticFilesPanel',
'debug_toolbar.panels.templates.TemplatesPanel',
'debug_toolbar.panels.cache.CachePanel',
]
DEBUG_TOOLBAR_CONFIG = {'INTERCEPT_REDIRECTS': False}
Django
hakkında diğer konular