From 800ec068bdbf1c190b0644ae1102d84256792c9a Mon Sep 17 00:00:00 2001 From: John Jarvis Date: Fri, 31 May 2013 11:15:15 -0400 Subject: [PATCH 1/2] updating django minor release --- requirements/edx/base.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/edx/base.txt b/requirements/edx/base.txt index 01768bcac9..61e510e1a8 100644 --- a/requirements/edx/base.txt +++ b/requirements/edx/base.txt @@ -19,7 +19,7 @@ django-sekizai==0.6.1 django-ses==0.4.1 django-storages==1.1.5 django-threaded-multihost==1.4-1 -django==1.4.3 +django==1.4.5 feedparser==5.1.3 fs==0.4.0 GitPython==0.3.2.RC1 From 2e84540af0b20073a9b547a2619c3d4ab4f37766 Mon Sep 17 00:00:00 2001 From: e0d Date: Fri, 31 May 2013 11:15:28 -0400 Subject: [PATCH 2/2] removing the request debugger entirely. --- common/djangoapps/util/views.py | 27 --------------------------- lms/urls.py | 7 ------- 2 files changed, 34 deletions(-) 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(""" -

request:

-
{0}
- -

request.GET

: - -
{1}
- -

request.POST

: -
{2}
- -

request.REQUEST

: -
{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'),