File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ def page_not_found(
50
50
if show_html_error_page (request ):
51
51
return defaults .page_not_found (request , exception , template_name )
52
52
53
- # Serve a simpler, cheaper 404 page if we don't need to
53
+ # Serve a simpler, cheaper 404 page if possible
54
54
return HttpResponseNotFound (
55
55
"Page not found" , content_type = "text/plain; charset=utf-8"
56
56
)
@@ -62,7 +62,7 @@ def server_error(request, template_name="patterns/pages/errors/500.html"):
62
62
if show_html_error_page (request ):
63
63
return defaults .server_error (request , template_name )
64
64
65
- # Serve a simpler, cheaper 500 page if we don't need to
65
+ # Serve a simpler, cheaper 500 page if possible
66
66
return HttpResponseServerError (
67
67
"Server error" , content_type = "text/plain; charset=utf-8"
68
68
)
You can’t perform that action at this time.
0 commit comments