Created
July 25, 2013 18:20
-
-
Save camd/6082366 to your computer and use it in GitHub Desktop.
Enable full logging in MozTrap. Add this to your local.py. Uncomment the ``LOGGING...`` section to get extra logging.
And set ``DEBUG_TOOLBAR`` to True to enable the Django debug toolbar. (be sure it's installed in your virtualenv).
Uncomment DDT items to see more info in that.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TEMPLATE_DEBUG = True | |
from base import LOGGING | |
# LOGGING["handlers"]["console"] = { | |
# "level": "DEBUG", | |
# "class": "logging.StreamHandler", | |
# } | |
# | |
# LOGGING["root"] = {"handlers": ["console"]} | |
DEBUG_TOOLBAR = False | |
if DEBUG_TOOLBAR: | |
# for django-debug-toolbar | |
from .import base | |
base.MIDDLEWARE_CLASSES.append('debug_toolbar.middleware.DebugToolbarMiddleware') | |
INTERNAL_IPS = ('127.0.0.1',) | |
base.INSTALLED_APPS.append("debug_toolbar") | |
DEBUG_TOOLBAR_PANELS = ( | |
# 'debug_toolbar.panels.version.VersionDebugPanel', | |
# 'debug_toolbar.panels.timer.TimerDebugPanel', | |
# 'debug_toolbar.panels.timer.TimerDebugPanel', | |
# 'debug_toolbar.panels.settings_vars.SettingsVarsDebugPanel', | |
# 'debug_toolbar.panels.headers.HeaderDebugPanel', | |
# 'debug_toolbar.panels.request_vars.RequestVarsDebugPanel', | |
# 'debug_toolbar.panels.template.TemplateDebugPanel', | |
'debug_toolbar.panels.sql.SQLDebugPanel', | |
# 'debug_toolbar.panels.signals.SignalDebugPanel', | |
'debug_toolbar.panels.logger.LoggingPanel', | |
) | |
DEBUG_TOOLBAR_CONFIG = { | |
"INTERCEPT_REDIRECTS": False | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment