added logger and logging addon

This commit is contained in:
Esther Kleinhenz
2018-10-19 09:29:55 +02:00
parent d01ed0085c
commit 7d0350d452
151 changed files with 21780 additions and 11 deletions
+31
View File
@@ -216,6 +216,37 @@ LOGGING = {
'mysite': {
'handlers': ['console', 'logfile'],
'level': 'DEBUG',
'formatter': 'standard'
},
}
}
if DEBUG:
INTERNAL_IPS = ('127.0.0.1', 'localhost',)
MIDDLEWARE += (
'debug_toolbar.middleware.DebugToolbarMiddleware',
)
INSTALLED_APPS += (
'debug_toolbar',
)
DEBUG_TOOLBAR_PANELS = [
'debug_toolbar.panels.versions.VersionsPanel',
'debug_toolbar.panels.timer.TimerPanel',
'debug_toolbar.panels.settings.SettingsPanel',
'debug_toolbar.panels.headers.HeadersPanel',
'debug_toolbar.panels.request.RequestPanel',
'debug_toolbar.panels.sql.SQLPanel',
'debug_toolbar.panels.staticfiles.StaticFilesPanel',
'debug_toolbar.panels.templates.TemplatesPanel',
'debug_toolbar.panels.cache.CachePanel',
'debug_toolbar.panels.signals.SignalsPanel',
'debug_toolbar.panels.logging.LoggingPanel',
'debug_toolbar.panels.redirects.RedirectsPanel',
]
DEBUG_TOOLBAR_CONFIG = {
'INTERCEPT_REDIRECTS': False,
}