Commit 1dcea6d3 authored by fred's avatar fred
Browse files

add debug toolbar

parent 026bb2ae
...@@ -4,6 +4,7 @@ import os ...@@ -4,6 +4,7 @@ import os
DEBUG = True DEBUG = True
TEMPLATE_DEBUG = DEBUG TEMPLATE_DEBUG = DEBUG
DEBUG_TOOLBAR = True
PROJECT_PATH = os.path.dirname(os.path.dirname(__file__)) PROJECT_PATH = os.path.dirname(os.path.dirname(__file__))
...@@ -184,3 +185,14 @@ try: ...@@ -184,3 +185,14 @@ try:
from local_settings import * from local_settings import *
except ImportError: except ImportError:
pass pass
if DEBUG and DEBUG_TOOLBAR:
MIDDLEWARE_CLASSES += (
'debug_toolbar.middleware.DebugToolbarMiddleware',
)
INSTALLED_APPS += (
'debug_toolbar',
)
DEBUG_TOOLBAR_CONFIG = {
'INTERCEPT_REDIRECTS': False,
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment