diff --git a/common/djangoapps/util/views.py b/common/djangoapps/util/views.py index 991d6e2e75..d0aa0dc680 100644 --- a/common/djangoapps/util/views.py +++ b/common/djangoapps/util/views.py @@ -209,30 +209,3 @@ def accepts(request, media_type): accept = parse_accept_header(request.META.get("HTTP_ACCEPT", "")) return media_type in [t for (t, p, q) in accept] - -def debug_request(request): - """Return a pretty printed version of the request""" - - return HttpResponse(""" -
{0}
-
-{1}
-
-{2}
-
-{3}
-
-
-
-
-""".format(
- pprint.pformat(request),
- pprint.pformat(dict(request.GET)),
- pprint.pformat(dict(request.POST)),
- pprint.pformat(dict(request.REQUEST)),
- ))
diff --git a/lms/urls.py b/lms/urls.py
index 98c36df9b0..851731e6ec 100644
--- a/lms/urls.py
+++ b/lms/urls.py
@@ -330,13 +330,6 @@ if settings.DEBUG or settings.MITX_FEATURES.get('ENABLE_DJANGO_ADMIN_SITE'):
## Jasmine and admin
urlpatterns += (url(r'^admin/', include(admin.site.urls)),)
-if settings.DEBUG:
- # Originally added to allow debugging issues when prod is
- # mysteriously different from staging (specifically missing get
- # parameters in certain cases), but removing from prod because
- # it's a security risk.
- urlpatterns += (url(r'^debug_request$', 'util.views.debug_request'),)
-
if settings.MITX_FEATURES.get('AUTH_USE_OPENID'):
urlpatterns += (
url(r'^openid/login/$', 'django_openid_auth.views.login_begin', name='openid-login'),