1
0
Bifurcation 0

feat(config): permets d'activer django-debugtoolbar

master
Jérôme Lebleu 2019-10-29 11:33:08 +01:00
Parent 546f9e8bbd
révision f6ba642555
2 fichiers modifiés avec 9 ajouts et 9 suppressions

Voir le fichier

@ -35,17 +35,16 @@ INSTALLED_APPS += ['wagtail.contrib.styleguide']
# DJANGO DEBUG TOOLBAR
# ------------------------------------------------------------------------------
# https://django-debug-toolbar.readthedocs.io/en/stable/installation.html
INSTALLED_APPS += ['debug_toolbar']
MIDDLEWARE += ['debug_toolbar.middleware.DebugToolbarMiddleware']
if env.bool('DJANGO_DEBUG_TOOLBAR', default=False):
INSTALLED_APPS += ['debug_toolbar']
MIDDLEWARE += ['debug_toolbar.middleware.DebugToolbarMiddleware']
INTERNAL_IPS = ['127.0.0.1']
INTERNAL_IPS = ['127.0.0.1']
DEBUG_TOOLBAR_CONFIG = {
'DISABLE_PANELS': ['debug_toolbar.panels.redirects.RedirectsPanel'],
'SHOW_TEMPLATE_CONTEXT': True,
# jQuery is already loaded by our assets
'JQUERY_URL': '',
}
DEBUG_TOOLBAR_CONFIG = {
'DISABLE_PANELS': ['debug_toolbar.panels.redirects.RedirectsPanel'],
'SHOW_TEMPLATE_CONTEXT': True,
}
# DJANGO EXTENSIONS
# ------------------------------------------------------------------------------

Voir le fichier

@ -102,3 +102,4 @@
#
# Note that it's always disabled in production.
#DJANGO_DEBUG=off
#DJANGO_DEBUG_TOOLBAR=on