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
87daba69
Commit
87daba69
authored
May 31, 2013
by
Chris Dodge
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:edx/edx-platform into fix/cdodge/bad-link-in-activation-email
parents
7efcd981
aae3380a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 additions
and
35 deletions
+1
-35
common/djangoapps/util/views.py
+0
-27
lms/urls.py
+0
-7
requirements/edx/base.txt
+1
-1
No files found.
common/djangoapps/util/views.py
View file @
87daba69
...
...
@@ -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 @
87daba69
...
...
@@ -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'
),
...
...
requirements/edx/base.txt
View file @
87daba69
...
...
@@ -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
...
...
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