Merge branch 'master' of github.com:edx/edx-platform into fix/cdodge/bad-link-in-activation-email
This commit is contained in:
@@ -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("""<html>
|
||||
<h1>request:</h1>
|
||||
<pre>{0}</pre>
|
||||
|
||||
<h1>request.GET</h1>:
|
||||
|
||||
<pre>{1}</pre>
|
||||
|
||||
<h1>request.POST</h1>:
|
||||
<pre>{2}</pre>
|
||||
|
||||
<h1>request.REQUEST</h1>:
|
||||
<pre>{3}</pre>
|
||||
|
||||
|
||||
|
||||
</html>
|
||||
""".format(
|
||||
pprint.pformat(request),
|
||||
pprint.pformat(dict(request.GET)),
|
||||
pprint.pformat(dict(request.POST)),
|
||||
pprint.pformat(dict(request.REQUEST)),
|
||||
))
|
||||
|
||||
@@ -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'),
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user