Put a feature flag around the staff-only debugging page.

This commit is contained in:
Ned Batchelder
2013-05-13 17:07:13 -04:00
parent 1201d11701
commit b682e1c0d3
2 changed files with 9 additions and 4 deletions

View File

@@ -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

View File

@@ -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)