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
b682e1c0
Commit
b682e1c0
authored
May 13, 2013
by
Ned Batchelder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Put a feature flag around the staff-only debugging page.
parent
1201d117
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
lms/envs/common.py
+5
-1
lms/urls.py
+4
-3
No files found.
lms/envs/common.py
View file @
b682e1c0
...
...
@@ -90,7 +90,11 @@ MITX_FEATURES = {
# Give a UI to show a student's submission history in a problem by the
# Staff Debug tool.
'ENABLE_STUDENT_HISTORY_VIEW'
:
True
'ENABLE_STUDENT_HISTORY_VIEW'
:
True
,
# Turn on a page that lets staff enter Python code to be run in the
# sandbox, for testing whether it's enabled properly.
'ENABLE_DEBUG_RUN_PYTHON'
:
False
,
}
# Used for A/B testing
...
...
lms/urls.py
View file @
b682e1c0
...
...
@@ -358,9 +358,10 @@ urlpatterns += (
url
(
r'^comm/foldit_ops'
,
'foldit.views.foldit_ops'
,
name
=
"foldit_ops"
),
)
urlpatterns
+=
(
url
(
r'^debug/run_python'
,
'debug.views.run_python'
),
)
if
settings
.
MITX_FEATURES
.
get
(
'ENABLE_DEBUG_RUN_PYTHON'
):
urlpatterns
+=
(
url
(
r'^debug/run_python'
,
'debug.views.run_python'
),
)
urlpatterns
=
patterns
(
*
urlpatterns
)
...
...
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