-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Standardize error template paths (#11494)
* Default error view drop top level errors and split proxito error views View changes to support just two paths for errors, `errors/dashboard` and `errors/proxito`. * Replace one off teapot view * Move spam template to standard location * Point proxito views at new errors/proxito path * Move top level errors to dashboard error templates path * Add proxito error templates path with links to dashboard templates for now * Move proxito 404 errors to proxito error path * Make error view handler more explicit Instead of using the status code to find the error template in the error view handler, just specify a template name. This doesn't return the corresponding HTTP status code with the error from the debug error view. * Reword DNS exception reason "Matching DNS record not found" is not as clear as "Domain not found". * Add missing template * Update pattern for error view for proxito Don't try to default the status code in the view, but instead leave this alone and let the template decide. This allows for 4xx/5xx fallback templates to state the actual status code. * Fix URL load order bug
- Loading branch information
Showing
40 changed files
with
214 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
readthedocs/templates/401.html → ...edocs/templates/errors/dashboard/401.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{% extends "errors/dashboard/base.html" %} | ||
{% load core_tags %} | ||
{% load i18n %} | ||
|
||
{% block title %} | ||
{% trans "404 Not Found" %} | ||
{% endblock %} | ||
|
||
{% block content %} | ||
|
||
<h1>{% trans "404 Not Found" %}</h1> | ||
|
||
{% block 404_error_message %} | ||
<section> | ||
<p>{% trans "You have encountered a 404 on Read the Docs. You are either looking for a page that does not exist or a project that has been removed." %}</p> | ||
</section> | ||
|
||
<pre style="line-height: 1.25; white-space: pre;"> | ||
|
||
\ What a maze! / | ||
\ / | ||
\ This page does / | ||
] not exist. [ ,'| | ||
] [ / | | ||
]___ ___[ ,' | | ||
] ]\ /[ [ |: | | ||
] ] \ / [ [ |: | | ||
] ] ] [ [ [ |: | | ||
] ] ]__ __[ [ [ |: | | ||
] ] ] ]\ _ /[ [ [ [ |: | | ||
] ] ] ] (#) [ [ [ [ :====' | ||
] ] ]_].nHn.[_[ [ [ | ||
] ] ] HHHHH. [ [ [ | ||
] ] / `HH("N \ [ [ | ||
]__]/ HHH " \[__[ | ||
] NNN [ | ||
] N/" [ | ||
] N H [ | ||
/ N \ | ||
/ q, \ | ||
/ \ | ||
</pre> | ||
|
||
{% endblock %} | ||
|
||
{% endblock %} |
Oops, something went wrong.