| 1 |
<!DOCTYPE html> |
| 2 |
<html lang="en"> |
| 3 |
<head> |
| 4 |
<meta http-equiv="content-type" content="text/html; charset=utf-8"> |
| 5 |
<title>Page not found at {{ request.path_info }}</title> |
| 6 |
<meta name="robots" content="NONE,NOARCHIVE"> |
| 7 |
<style> |
| 8 |
html * { padding:0; margin:0; } |
| 9 |
body * { padding:10px 20px; } |
| 10 |
body * * { padding:0; } |
| 11 |
body { font-family: sans-serif; background:#eee; color:#000; } |
| 12 |
body > :where(header, main, footer) { border-bottom:1px solid #ddd; } |
| 13 |
h1 { font-weight:normal; margin-bottom:.4em; } |
| 14 |
h1 small { font-size:60%; color:#666; font-weight:normal; } |
| 15 |
table { border:none; border-collapse: collapse; width:100%; } |
| 16 |
td, th { vertical-align:top; padding:2px 3px; } |
| 17 |
th { width:12em; text-align:right; color:#666; padding-right:.5em; } |
| 18 |
#info { background:#f6f6f6; } |
| 19 |
#info ol { margin: 0.5em 4em; } |
| 20 |
#info ol li { font-family: monospace; } |
| 21 |
#summary { background: #ffc; } |
| 22 |
#explanation { background:#eee; border-bottom: 0px none; } |
| 23 |
pre.exception_value { font-family: sans-serif; color: #575757; font-size: 1.5em; margin: 10px 0 10px 0; } |
| 24 |
</style> |
| 25 |
</head> |
| 26 |
<body> |
| 27 |
<header id="summary"> |
| 28 |
<h1>Page not found <small>(404)</small></h1> |
| 29 |
{% if reason and resolved %}<pre class="exception_value">{{ reason }}</pre>{% endif %} |
| 30 |
<table class="meta"> |
| 31 |
<tr> |
| 32 |
<th scope="row">Request Method:</th> |
| 33 |
<td>{{ request.META.REQUEST_METHOD }}</td> |
| 34 |
</tr> |
| 35 |
<tr> |
| 36 |
<th scope="row">Request URL:</th> |
| 37 |
<td>{{ request.build_absolute_uri }}</td> |
| 38 |
</tr> |
| 39 |
{% if raising_view_name %} |
| 40 |
<tr> |
| 41 |
<th scope="row">Raised by:</th> |
| 42 |
<td>{{ raising_view_name }}</td> |
| 43 |
</tr> |
| 44 |
{% endif %} |
| 45 |
</table> |
| 46 |
</header> |
| 47 |
|
| 48 |
<main id="info"> |
| 49 |
{% if urlpatterns %} |
| 50 |
<p> |
| 51 |
Using the URLconf defined in <code>{{ urlconf }}</code>, |
| 52 |
Django tried these URL patterns, in this order: |
| 53 |
</p> |
| 54 |
<ol> |
| 55 |
{% for pattern in urlpatterns %} |
| 56 |
<li> |
| 57 |
{% for pat in pattern %} |
| 58 |
<code> |
| 59 |
{{ pat.pattern }} |
| 60 |
{% if forloop.last and pat.name %}[name='{{ pat.name }}']{% endif %} |
| 61 |
</code> |
| 62 |
{% endfor %} |
| 63 |
</li> |
| 64 |
{% endfor %} |
| 65 |
</ol> |
| 66 |
<p> |
| 67 |
{% if request_path %} |
| 68 |
The current path, <code>{{ request_path }}</code>, |
| 69 |
{% else %} |
| 70 |
The empty path |
| 71 |
{% endif %} |
| 72 |
{% if resolved %}matched the last one.{% else %}didn’t match any of these.{% endif %} |
| 73 |
</p> |
| 74 |
{% endif %} |
| 75 |
</main> |
| 76 |
|
| 77 |
<footer id="explanation"> |
| 78 |
<p> |
| 79 |
You’re seeing this error because you have <code>DEBUG = True</code> in |
| 80 |
your Django settings file. Change that to <code>False</code>, and Django |
| 81 |
will display a standard 404 page. |
| 82 |
</p> |
| 83 |
</footer> |
| 84 |
</body> |
| 85 |
</html> |