Commit f7aa52b0 by Chris Dodge

Use a plain error page which don't require any rendering context

simplify
parent 0c740649
...@@ -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', {}))
<html>
<body>
<h1>Page not found</h1>
</body>
</html>
<html>
<body>
<h1>
There has been a 500 error on the servers
</h1>
</body>
</html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment