We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6416e7 commit 949a272Copy full SHA for 949a272
tbx/core/utils/views.py
@@ -50,7 +50,7 @@ def page_not_found(
50
if show_html_error_page(request):
51
return defaults.page_not_found(request, exception, template_name)
52
53
- # Serve a simpler, cheaper 404 page if we don't need to
+ # Serve a simpler, cheaper 404 page if possible
54
return HttpResponseNotFound(
55
"Page not found", content_type="text/plain; charset=utf-8"
56
)
@@ -62,7 +62,7 @@ def server_error(request, template_name="patterns/pages/errors/500.html"):
62
63
return defaults.server_error(request, template_name)
64
65
- # Serve a simpler, cheaper 500 page if we don't need to
+ # Serve a simpler, cheaper 500 page if possible
66
return HttpResponseServerError(
67
"Server error", content_type="text/plain; charset=utf-8"
68
0 commit comments