bifurqué depuis cliss21/boiteaasso
feat(config): permets d'activer django-debugtoolbar
Parent
546f9e8bbd
révision
f6ba642555
|
@ -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
|
||||
# ------------------------------------------------------------------------------
|
||||
|
|
|
@ -102,3 +102,4 @@
|
|||
#
|
||||
# Note that it's always disabled in production.
|
||||
#DJANGO_DEBUG=off
|
||||
#DJANGO_DEBUG_TOOLBAR=on
|
||||
|
|
Chargement…
Référencer dans un nouveau ticket