Merge pull request #219 from cshields/fix_toolbar
Force debug toolbar to show in devmerge-requests/222/head
commit
01a2c9c103
|
@ -7,12 +7,17 @@ DEBUG = True
|
|||
MIDDLEWARE_CLASSES = MIDDLEWARE_CLASSES + (
|
||||
'debug_toolbar.middleware.DebugToolbarMiddleware',
|
||||
)
|
||||
INTERNAL_IPS = ('127.0.0.1',)
|
||||
|
||||
# override for INTERNAL_IPS, for docker and envs where that is dynamic
|
||||
def show_toolbar(request):
|
||||
return True
|
||||
|
||||
DEBUG_TOOLBAR_CONFIG = {
|
||||
'DISABLE_PANELS': [
|
||||
'debug_toolbar.panels.redirects.RedirectsPanel',
|
||||
],
|
||||
'SHOW_TEMPLATE_CONTEXT': True,
|
||||
'SHOW_TOOLBAR_CALLBACK': show_toolbar
|
||||
}
|
||||
|
||||
# Apps
|
||||
|
|
Loading…
Reference in New Issue