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
5c1ffd74
Commit
5c1ffd74
authored
Jan 17, 2014
by
yarko
Committed by
David Baumgold
Feb 10, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix partial work done for changes in django-debug-toolbar-1.0.1
add trailing comma, restore uncommented state of Mongo panel
parent
3938e84d
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
59 additions
and
46 deletions
+59
-46
cms/envs/dev.py
+1
-1
cms/envs/dev_dbperf.py
+10
-10
cms/envs/devstack.py
+14
-8
lms/envs/content.py
+10
-9
lms/envs/dev.py
+1
-1
lms/envs/devplus.py
+9
-9
lms/envs/devstack.py
+14
-8
No files found.
cms/envs/dev.py
View file @
5c1ffd74
...
@@ -160,7 +160,7 @@ DEBUG_TOOLBAR_PANELS = (
...
@@ -160,7 +160,7 @@ DEBUG_TOOLBAR_PANELS = (
# Django=1.3.1/1.4 where requests to views get duplicated (your method gets
# 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
# hit twice). So you can uncomment when you need to diagnose performance
# problems, but you shouldn't leave it on.
# problems, but you shouldn't leave it on.
# 'debug_toolbar.panels.profiling.Profiling
Debug
Panel',
# 'debug_toolbar.panels.profiling.ProfilingPanel',
)
)
DEBUG_TOOLBAR_CONFIG
=
{
DEBUG_TOOLBAR_CONFIG
=
{
...
...
cms/envs/dev_dbperf.py
View file @
5c1ffd74
...
@@ -9,21 +9,21 @@ This configuration is to turn on the Django Toolbar stats for DB access stats, f
...
@@ -9,21 +9,21 @@ This configuration is to turn on the Django Toolbar stats for DB access stats, f
from
.dev
import
*
from
.dev
import
*
DEBUG_TOOLBAR_PANELS
=
(
DEBUG_TOOLBAR_PANELS
=
(
'debug_toolbar.panels.version
.VersionDebug
Panel'
,
'debug_toolbar.panels.version
s.Versions
Panel'
,
'debug_toolbar.panels.timer.Timer
Debug
Panel'
,
'debug_toolbar.panels.timer.TimerPanel'
,
'debug_toolbar.panels.settings
_vars.SettingsVarsDebug
Panel'
,
'debug_toolbar.panels.settings
.Settings
Panel'
,
'debug_toolbar.panels.headers.Header
Debug
Panel'
,
'debug_toolbar.panels.headers.Header
s
Panel'
,
'debug_toolbar.panels.request
_vars.RequestVarsDebug
Panel'
,
'debug_toolbar.panels.request
.Request
Panel'
,
'debug_toolbar.panels.sql.SQL
Debug
Panel'
,
'debug_toolbar.panels.sql.SQLPanel'
,
'debug_toolbar.panels.signals.Signal
Debug
Panel'
,
'debug_toolbar.panels.signals.Signal
s
Panel'
,
'debug_toolbar.panels.logg
er
.LoggingPanel'
,
'debug_toolbar.panels.logg
ing
.LoggingPanel'
,
'debug_toolbar_mongo.panel.MongoDebugPanel'
'debug_toolbar_mongo.panel.MongoDebugPanel'
,
# Enabling the profiler has a weird bug as of django-debug-toolbar==0.9.4 and
# 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
# 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
# hit twice). So you can uncomment when you need to diagnose performance
# problems, but you shouldn't leave it on.
# problems, but you shouldn't leave it on.
# 'debug_toolbar.panels.profiling.Profiling
Debug
Panel',
# 'debug_toolbar.panels.profiling.ProfilingPanel',
)
)
# To see stacktraces for MongoDB queries, set this to True.
# To see stacktraces for MongoDB queries, set this to True.
...
...
cms/envs/devstack.py
View file @
5c1ffd74
...
@@ -37,14 +37,20 @@ MIDDLEWARE_CLASSES += ('debug_toolbar.middleware.DebugToolbarMiddleware',)
...
@@ -37,14 +37,20 @@ MIDDLEWARE_CLASSES += ('debug_toolbar.middleware.DebugToolbarMiddleware',)
INTERNAL_IPS
=
(
'127.0.0.1'
,)
INTERNAL_IPS
=
(
'127.0.0.1'
,)
DEBUG_TOOLBAR_PANELS
=
(
DEBUG_TOOLBAR_PANELS
=
(
'debug_toolbar.panels.version.VersionDebugPanel'
,
'debug_toolbar.panels.versions.VersionsPanel'
,
'debug_toolbar.panels.timer.TimerDebugPanel'
,
'debug_toolbar.panels.timer.TimerPanel'
,
'debug_toolbar.panels.settings_vars.SettingsVarsDebugPanel'
,
'debug_toolbar.panels.settings.SettingsPanel'
,
'debug_toolbar.panels.headers.HeaderDebugPanel'
,
'debug_toolbar.panels.headers.HeadersPanel'
,
'debug_toolbar.panels.request_vars.RequestVarsDebugPanel'
,
'debug_toolbar.panels.request.RequestPanel'
,
'debug_toolbar.panels.sql.SQLDebugPanel'
,
'debug_toolbar.panels.sql.SQLPanel'
,
'debug_toolbar.panels.signals.SignalDebugPanel'
,
'debug_toolbar.panels.signals.SignalsPanel'
,
'debug_toolbar.panels.logger.LoggingPanel'
,
'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
=
{
DEBUG_TOOLBAR_CONFIG
=
{
...
...
lms/envs/content.py
View file @
5c1ffd74
...
@@ -19,18 +19,19 @@ INSTALLED_APPS += ('debug_toolbar',)
...
@@ -19,18 +19,19 @@ INSTALLED_APPS += ('debug_toolbar',)
MIDDLEWARE_CLASSES
+=
(
'debug_toolbar.middleware.DebugToolbarMiddleware'
,)
MIDDLEWARE_CLASSES
+=
(
'debug_toolbar.middleware.DebugToolbarMiddleware'
,)
DEBUG_TOOLBAR_PANELS
=
(
DEBUG_TOOLBAR_PANELS
=
(
'debug_toolbar.panels.version
.VersionDebug
Panel'
,
'debug_toolbar.panels.version
s.Versions
Panel'
,
'debug_toolbar.panels.timer.Timer
Debug
Panel'
,
'debug_toolbar.panels.timer.TimerPanel'
,
'debug_toolbar.panels.settings
_vars.SettingsVarsDebug
Panel'
,
'debug_toolbar.panels.settings
.Settings
Panel'
,
'debug_toolbar.panels.headers.Header
Debug
Panel'
,
'debug_toolbar.panels.headers.Header
s
Panel'
,
'debug_toolbar.panels.request
_vars.RequestVarsDebug
Panel'
,
'debug_toolbar.panels.request
.Request
Panel'
,
'debug_toolbar.panels.sql.SQL
Debug
Panel'
,
'debug_toolbar.panels.sql.SQLPanel'
,
'debug_toolbar.panels.signals.Signal
Debug
Panel'
,
'debug_toolbar.panels.signals.Signal
s
Panel'
,
'debug_toolbar.panels.logg
er
.LoggingPanel'
,
'debug_toolbar.panels.logg
ing
.LoggingPanel'
,
# Enabling the profiler has a weird bug as of django-debug-toolbar==0.9.4 and
# 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
# 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
# hit twice). So you can uncomment when you need to diagnose performance
# problems, but you shouldn't leave it on.
# problems, but you shouldn't leave it on.
# 'debug_toolbar.panels.profiling.Profiling
Debug
Panel',
# 'debug_toolbar.panels.profiling.ProfilingPanel',
)
)
lms/envs/dev.py
View file @
5c1ffd74
...
@@ -230,7 +230,7 @@ DEBUG_TOOLBAR_PANELS = (
...
@@ -230,7 +230,7 @@ DEBUG_TOOLBAR_PANELS = (
# Django=1.3.1/1.4 where requests to views get duplicated (your method gets
# 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
# hit twice). So you can uncomment when you need to diagnose performance
# problems, but you shouldn't leave it on.
# problems, but you shouldn't leave it on.
# 'debug_toolbar.panels.profiling.Profiling
Debug
Panel',
# 'debug_toolbar.panels.profiling.ProfilingPanel',
)
)
DEBUG_TOOLBAR_CONFIG
=
{
DEBUG_TOOLBAR_CONFIG
=
{
...
...
lms/envs/devplus.py
View file @
5c1ffd74
...
@@ -57,20 +57,20 @@ MIDDLEWARE_CLASSES += ('debug_toolbar.middleware.DebugToolbarMiddleware',)
...
@@ -57,20 +57,20 @@ MIDDLEWARE_CLASSES += ('debug_toolbar.middleware.DebugToolbarMiddleware',)
INTERNAL_IPS
=
(
'127.0.0.1'
,)
INTERNAL_IPS
=
(
'127.0.0.1'
,)
DEBUG_TOOLBAR_PANELS
=
(
DEBUG_TOOLBAR_PANELS
=
(
'debug_toolbar.panels.version
.VersionDebug
Panel'
,
'debug_toolbar.panels.version
s.Versions
Panel'
,
'debug_toolbar.panels.timer.Timer
Debug
Panel'
,
'debug_toolbar.panels.timer.TimerPanel'
,
'debug_toolbar.panels.settings
_vars.SettingsVarsDebug
Panel'
,
'debug_toolbar.panels.settings
.Settings
Panel'
,
'debug_toolbar.panels.headers.Header
Debug
Panel'
,
'debug_toolbar.panels.headers.Header
s
Panel'
,
'debug_toolbar.panels.request
_vars.RequestVarsDebug
Panel'
,
'debug_toolbar.panels.request
.Request
Panel'
,
'debug_toolbar.panels.sql.SQL
Debug
Panel'
,
'debug_toolbar.panels.sql.SQLPanel'
,
'debug_toolbar.panels.signals.Signal
Debug
Panel'
,
'debug_toolbar.panels.signals.Signal
s
Panel'
,
'debug_toolbar.panels.logg
er
.LoggingPanel'
,
'debug_toolbar.panels.logg
ing
.LoggingPanel'
,
# Enabling the profiler has a weird bug as of django-debug-toolbar==0.9.4 and
# 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
# 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
# hit twice). So you can uncomment when you need to diagnose performance
# problems, but you shouldn't leave it on.
# problems, but you shouldn't leave it on.
'debug_toolbar.panels.profiling.Profiling
Debug
Panel'
,
'debug_toolbar.panels.profiling.ProfilingPanel'
,
)
)
#PIPELINE = True
#PIPELINE = True
lms/envs/devstack.py
View file @
5c1ffd74
...
@@ -34,14 +34,20 @@ MIDDLEWARE_CLASSES += ('django_comment_client.utils.QueryCountDebugMiddleware',
...
@@ -34,14 +34,20 @@ MIDDLEWARE_CLASSES += ('django_comment_client.utils.QueryCountDebugMiddleware',
INTERNAL_IPS
=
(
'127.0.0.1'
,)
INTERNAL_IPS
=
(
'127.0.0.1'
,)
DEBUG_TOOLBAR_PANELS
=
(
DEBUG_TOOLBAR_PANELS
=
(
'debug_toolbar.panels.version.VersionDebugPanel'
,
'debug_toolbar.panels.versions.VersionsPanel'
,
'debug_toolbar.panels.timer.TimerDebugPanel'
,
'debug_toolbar.panels.timer.TimerPanel'
,
'debug_toolbar.panels.settings_vars.SettingsVarsDebugPanel'
,
'debug_toolbar.panels.settings.SettingsPanel'
,
'debug_toolbar.panels.headers.HeaderDebugPanel'
,
'debug_toolbar.panels.headers.HeadersPanel'
,
'debug_toolbar.panels.request_vars.RequestVarsDebugPanel'
,
'debug_toolbar.panels.request.RequestPanel'
,
'debug_toolbar.panels.sql.SQLDebugPanel'
,
'debug_toolbar.panels.sql.SQLPanel'
,
'debug_toolbar.panels.signals.SignalDebugPanel'
,
'debug_toolbar.panels.signals.SignalsPanel'
,
'debug_toolbar.panels.logger.LoggingPanel'
,
'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
=
{
DEBUG_TOOLBAR_CONFIG
=
{
...
...
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