Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
radiopanik
panikdb
Commits
1dcea6d3
Commit
1dcea6d3
authored
Aug 30, 2013
by
fred
Browse files
add debug toolbar
parent
026bb2ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
panikdb/settings.py
View file @
1dcea6d3
...
...
@@ -4,6 +4,7 @@ import os
DEBUG
=
True
TEMPLATE_DEBUG
=
DEBUG
DEBUG_TOOLBAR
=
True
PROJECT_PATH
=
os
.
path
.
dirname
(
os
.
path
.
dirname
(
__file__
))
...
...
@@ -184,3 +185,14 @@ try:
from
local_settings
import
*
except
ImportError
:
pass
if
DEBUG
and
DEBUG_TOOLBAR
:
MIDDLEWARE_CLASSES
+=
(
'debug_toolbar.middleware.DebugToolbarMiddleware'
,
)
INSTALLED_APPS
+=
(
'debug_toolbar'
,
)
DEBUG_TOOLBAR_CONFIG
=
{
'INTERCEPT_REDIRECTS'
:
False
,
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment