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
8e93c189
Commit
8e93c189
authored
Feb 27, 2015
by
Calen Pennington
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6016 from cpennington/django-toolbar-upgrade
Upgrade django-debug-toolbar to 1.2.2
parents
78079213
88747024
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
77 additions
and
118 deletions
+77
-118
cms/envs/dev.py
+9
-18
cms/envs/dev_dbperf.py
+9
-14
cms/envs/devstack.py
+15
-16
lms/envs/content.py
+9
-14
lms/envs/dev.py
+9
-18
lms/envs/devplus.py
+9
-14
lms/envs/devstack.py
+15
-16
requirements/edx/base.txt
+2
-8
No files found.
cms/envs/dev.py
View file @
8e93c189
...
...
@@ -139,26 +139,17 @@ MIDDLEWARE_CLASSES += ('debug_toolbar.middleware.DebugToolbarMiddleware',)
INTERNAL_IPS
=
(
'127.0.0.1'
,)
DEBUG_TOOLBAR_PANELS
=
(
'debug_toolbar.panels.version.VersionDebugPanel'
,
'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.sql.SQLDebugPanel'
,
'debug_toolbar.panels.signals.SignalDebugPanel'
,
'debug_toolbar.panels.logger.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.ProfilingDebugPanel',
'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'
,
'debug_toolbar.panels.profiling.ProfilingPanel'
,
)
DEBUG_TOOLBAR_CONFIG
=
{
'INTERCEPT_REDIRECTS'
:
False
}
# To see stacktraces for MongoDB queries, set this to True.
# Stacktraces slow down page loads drastically (for pages with lots of queries).
DEBUG_TOOLBAR_MONGO_STACKTRACES
=
False
...
...
cms/envs/dev_dbperf.py
View file @
8e93c189
...
...
@@ -9,21 +9,16 @@ This configuration is to turn on the Django Toolbar stats for DB access stats, f
from
.dev
import
*
DEBUG_TOOLBAR_PANELS
=
(
'debug_toolbar.panels.version
.VersionDebug
Panel'
,
'debug_toolbar.panels.timer.Timer
Debug
Panel'
,
'debug_toolbar.panels.settings
_vars.SettingsVarsDebug
Panel'
,
'debug_toolbar.panels.headers.Header
Debug
Panel'
,
'debug_toolbar.panels.request
_vars.RequestVarsDebug
Panel'
,
'debug_toolbar.panels.sql.SQL
Debug
Panel'
,
'debug_toolbar.panels.signals.Signal
Debug
Panel'
,
'debug_toolbar.panels.logg
er
.LoggingPanel'
,
'debug_toolbar.panels.version
s.Versions
Panel'
,
'debug_toolbar.panels.timer.TimerPanel'
,
'debug_toolbar.panels.settings
.Settings
Panel'
,
'debug_toolbar.panels.headers.Header
s
Panel'
,
'debug_toolbar.panels.request
.Request
Panel'
,
'debug_toolbar.panels.sql.SQLPanel'
,
'debug_toolbar.panels.signals.Signal
s
Panel'
,
'debug_toolbar.panels.logg
ing
.LoggingPanel'
,
'debug_toolbar_mongo.panel.MongoDebugPanel'
# 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.ProfilingDebugPanel',
'debug_toolbar.panels.profiling.ProfilingPanel'
,
)
# To see stacktraces for MongoDB queries, set this to True.
...
...
cms/envs/devstack.py
View file @
8e93c189
...
...
@@ -46,27 +46,26 @@ MIDDLEWARE_CLASSES += ('debug_toolbar.middleware.DebugToolbarMiddleware',)
INTERNAL_IPS
=
(
'127.0.0.1'
,)
DEBUG_TOOLBAR_PANELS
=
(
'debug_toolbar.panels.version.VersionDebugPanel'
,
'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.sql.SQLDebugPanel'
,
'debug_toolbar.panels.signals.SignalDebugPanel'
,
'debug_toolbar.panels.logger.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.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'
,
'debug_toolbar.panels.profiling.ProfilingPanel'
,
)
DEBUG_TOOLBAR_CONFIG
=
{
'INTERCEPT_REDIRECTS'
:
False
,
'SHOW_TOOLBAR_CALLBACK'
:
lambda
_
:
True
,
'SHOW_TOOLBAR_CALLBACK'
:
'cms.envs.devstack.should_show_debug_toolbar'
}
def
should_show_debug_toolbar
(
_
):
return
True
# We always want the toolbar on devstack regardless of IP, auth, etc.
# To see stacktraces for MongoDB queries, set this to True.
# Stacktraces slow down page loads drastically (for pages with lots of queries).
DEBUG_TOOLBAR_MONGO_STACKTRACES
=
False
...
...
lms/envs/content.py
View file @
8e93c189
...
...
@@ -19,18 +19,13 @@ INSTALLED_APPS += ('debug_toolbar',)
MIDDLEWARE_CLASSES
+=
(
'debug_toolbar.middleware.DebugToolbarMiddleware'
,)
DEBUG_TOOLBAR_PANELS
=
(
'debug_toolbar.panels.version.VersionDebugPanel'
,
'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.sql.SQLDebugPanel'
,
'debug_toolbar.panels.signals.SignalDebugPanel'
,
'debug_toolbar.panels.logger.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.ProfilingDebugPanel',
'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'
,
'debug_toolbar.panels.profiling.ProfilingPanel'
,
)
lms/envs/dev.py
View file @
8e93c189
...
...
@@ -235,26 +235,17 @@ MIDDLEWARE_CLASSES += (
INTERNAL_IPS
=
(
'127.0.0.1'
,)
DEBUG_TOOLBAR_PANELS
=
(
'debug_toolbar.panels.version.VersionDebugPanel'
,
'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.sql.SQLDebugPanel'
,
'debug_toolbar.panels.signals.SignalDebugPanel'
,
'debug_toolbar.panels.logger.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.ProfilingDebugPanel',
'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'
,
'debug_toolbar.panels.profiling.ProfilingPanel'
,
)
DEBUG_TOOLBAR_CONFIG
=
{
'INTERCEPT_REDIRECTS'
:
False
}
#################### FILE UPLOADS (for discussion forums) #####################
DEFAULT_FILE_STORAGE
=
'django.core.files.storage.FileSystemStorage'
...
...
lms/envs/devplus.py
View file @
8e93c189
...
...
@@ -57,20 +57,15 @@ MIDDLEWARE_CLASSES += ('debug_toolbar.middleware.DebugToolbarMiddleware',)
INTERNAL_IPS
=
(
'127.0.0.1'
,)
DEBUG_TOOLBAR_PANELS
=
(
'debug_toolbar.panels.version.VersionDebugPanel'
,
'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.sql.SQLDebugPanel'
,
'debug_toolbar.panels.signals.SignalDebugPanel'
,
'debug_toolbar.panels.logger.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.ProfilingDebugPanel'
,
'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'
,
'debug_toolbar.panels.profiling.ProfilingPanel'
,
)
#PIPELINE = True
lms/envs/devstack.py
View file @
8e93c189
...
...
@@ -54,28 +54,27 @@ MIDDLEWARE_CLASSES = (
INTERNAL_IPS
=
(
'127.0.0.1'
,)
DEBUG_TOOLBAR_PANELS
=
(
'debug_toolbar.panels.version
.VersionDebug
Panel'
,
'debug_toolbar.panels.timer.Timer
Debug
Panel'
,
'debug_toolbar.panels.settings
_vars.SettingsVarsDebug
Panel'
,
'debug_toolbar.panels.headers.Header
Debug
Panel'
,
'debug_toolbar.panels.request
_vars.RequestVarsDebug
Panel'
,
'debug_toolbar.panels.sql.SQL
Debug
Panel'
,
'debug_toolbar.panels.signals.Signal
Debug
Panel'
,
'debug_toolbar.panels.logg
er
.LoggingPanel'
,
'debug_toolbar.panels.version
s.Versions
Panel'
,
'debug_toolbar.panels.timer.TimerPanel'
,
'debug_toolbar.panels.settings
.Settings
Panel'
,
'debug_toolbar.panels.headers.Header
s
Panel'
,
'debug_toolbar.panels.request
.Request
Panel'
,
'debug_toolbar.panels.sql.SQLPanel'
,
'debug_toolbar.panels.signals.Signal
s
Panel'
,
'debug_toolbar.panels.logg
ing
.LoggingPanel'
,
'debug_toolbar_mongo.panel.MongoDebugPanel'
,
# 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.ProfilingDebugPanel',
'debug_toolbar.panels.profiling.ProfilingPanel'
,
)
DEBUG_TOOLBAR_CONFIG
=
{
'INTERCEPT_REDIRECTS'
:
False
,
'SHOW_TOOLBAR_CALLBACK'
:
lambda
_
:
True
,
'SHOW_TOOLBAR_CALLBACK'
:
'lms.envs.devstack.should_show_debug_toolbar'
}
def
should_show_debug_toolbar
(
_
):
return
True
# We always want the toolbar on devstack regardless of IP, auth, etc.
########################### PIPELINE #################################
PIPELINE_SASS_ARGUMENTS
=
'--debug-info --require {proj_dir}/static/sass/bourbon/lib/bourbon.rb'
.
format
(
proj_dir
=
PROJECT_ROOT
)
...
...
requirements/edx/base.txt
View file @
8e93c189
...
...
@@ -118,14 +118,8 @@ ipaddr==2.1.11
# Used to allow to configure CORS headers for cross-domain requests
django-cors-headers==0.13
# We've tried several times to update the debug toolbar to version 1.0.1,
# and had problems each time, resulting in us rolling back to 0.9.4. Before
# submitting another pull request to do this update, check the following:
# * https://github.com/django-debug-toolbar/django-debug-toolbar/issues/535 should be resolved
# * Studio and CMS should both run correctly, both directly and via devstack
# * Check the Javascript console to be sure there are no Javascript errors
# related to the Django debug toolbar
django_debug_toolbar==0.9.4
# Debug toolbar
django_debug_toolbar==1.2.2
django-debug-toolbar-mongo
# Used for testing
...
...
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