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
2e84540a
Commit
2e84540a
authored
May 31, 2013
by
e0d
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removing the request debugger entirely.
parent
46967a78
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
34 deletions
+0
-34
common/djangoapps/util/views.py
+0
-27
lms/urls.py
+0
-7
No files found.
common/djangoapps/util/views.py
View file @
2e84540a
...
...
@@ -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
)),
))
lms/urls.py
View file @
2e84540a
...
...
@@ -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'
),
...
...
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