Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
6b80d4cd
Commit
6b80d4cd
authored
Aug 05, 2015
by
Jonathan Piacenti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove redundant Django Debug Toolbar config.
parent
adae2a9d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
35 deletions
+0
-35
lms/envs/devstack.py
+0
-35
No files found.
lms/envs/devstack.py
View file @
6b80d4cd
...
@@ -100,41 +100,6 @@ DEBUG_TOOLBAR_PANELS += (
...
@@ -100,41 +100,6 @@ DEBUG_TOOLBAR_PANELS += (
'debug_toolbar_mongo.panel.MongoDebugPanel'
,
'debug_toolbar_mongo.panel.MongoDebugPanel'
,
)
)
################################ DEBUG TOOLBAR ################################
FEATURES
[
'DEBUG_TOOLBAR'
]
=
True
if
FEATURES
.
get
(
'DEBUG_TOOLBAR'
):
INSTALLED_APPS
+=
(
'debug_toolbar'
,)
MIDDLEWARE_CLASSES
+=
(
'django_comment_client.utils.QueryCountDebugMiddleware'
,
'debug_toolbar.middleware.DebugToolbarMiddleware'
,
)
INTERNAL_IPS
=
(
'127.0.0.1'
,)
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.signals.SignalsPanel'
,
'debug_toolbar.panels.logging.LoggingPanel'
,
# Enabling the profiler has a weird bug as of django-debug-toolbar==0.9.4 and
# Django=1.3.1/1.4 where requests to views get duplicated (your method gets
# hit twice). So you can uncomment when you need to diagnose performance
# problems, but you shouldn't leave it on.
# 'debug_toolbar.panels.profiling.ProfilingPanel',
)
DEBUG_TOOLBAR_CONFIG
=
{
'INTERCEPT_REDIRECTS'
:
False
,
'SHOW_TOOLBAR_CALLBACK'
:
lambda
_
:
True
,
}
INSTALLED_APPS
+=
(
# Mongo perf stats
'debug_toolbar_mongo'
,
)
########################### PIPELINE #################################
########################### PIPELINE #################################
...
...
Write
Preview
Markdown
is supported
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