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
f7aa52b0
Commit
f7aa52b0
authored
Apr 09, 2015
by
Chris Dodge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use a plain error page which don't require any rendering context
simplify
parent
0c740649
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
2 deletions
+14
-2
lms/djangoapps/static_template_view/views.py
+2
-2
lms/templates/static_templates/404-plain.html
+5
-0
lms/templates/static_templates/server-error-plain.html
+7
-0
No files found.
lms/djangoapps/static_template_view/views.py
View file @
f7aa52b0
...
@@ -62,8 +62,8 @@ def render_press_release(request, slug):
...
@@ -62,8 +62,8 @@ def render_press_release(request, slug):
def
render_404
(
request
):
def
render_404
(
request
):
return
HttpResponseNotFound
(
render_to_string
(
'static_templates/404.html'
,
{}))
return
HttpResponseNotFound
(
render_to_string
(
'static_templates/404
-plain
.html'
,
{}))
def
render_500
(
request
):
def
render_500
(
request
):
return
HttpResponseServerError
(
render_to_string
(
'static_templates/server-error.html'
,
{}))
return
HttpResponseServerError
(
render_to_string
(
'static_templates/server-error
-plain
.html'
,
{}))
lms/templates/static_templates/404-plain.html
0 → 100644
View file @
f7aa52b0
<html>
<body>
<h1>
Page not found
</h1>
</body>
</html>
lms/templates/static_templates/server-error-plain.html
0 → 100644
View file @
f7aa52b0
<html>
<body>
<h1>
There has been a 500 error on the servers
</h1>
</body>
</html>
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