2017-04-01 23:31:54 +08:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
2017-08-01 22:52:29 +08:00
|
|
|
<title>Page not found at {{ request.path_info }}</title>
|
2017-04-01 23:31:54 +08:00
|
|
|
<meta name="robots" content="NONE,NOARCHIVE">
|
|
|
|
<style type="text/css">
|
|
|
|
html * { padding:0; margin:0; }
|
|
|
|
body * { padding:10px 20px; }
|
|
|
|
body * * { padding:0; }
|
|
|
|
body { font:small sans-serif; background:#eee; }
|
|
|
|
body>div { border-bottom:1px solid #ddd; }
|
|
|
|
h1 { font-weight:normal; margin-bottom:.4em; }
|
|
|
|
h1 span { font-size:60%; color:#666; font-weight:normal; }
|
|
|
|
table { border:none; border-collapse: collapse; width:100%; }
|
|
|
|
td, th { vertical-align:top; padding:2px 3px; }
|
|
|
|
th { width:12em; text-align:right; color:#666; padding-right:.5em; }
|
|
|
|
#info { background:#f6f6f6; }
|
|
|
|
#info ol { margin: 0.5em 4em; }
|
|
|
|
#info ol li { font-family: monospace; }
|
|
|
|
#summary { background: #ffc; }
|
|
|
|
#explanation { background:#eee; border-bottom: 0px none; }
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id="summary">
|
|
|
|
<h1>Page not found <span>(404)</span></h1>
|
|
|
|
<table class="meta">
|
|
|
|
<tr>
|
|
|
|
<th>Request Method:</th>
|
|
|
|
<td>{{ request.META.REQUEST_METHOD }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th>Request URL:</th>
|
2017-08-01 22:52:29 +08:00
|
|
|
<td>{{ request.build_absolute_uri }}</td>
|
2017-04-01 23:31:54 +08:00
|
|
|
</tr>
|
|
|
|
{% if raising_view_name %}
|
|
|
|
<tr>
|
|
|
|
<th>Raised by:</th>
|
|
|
|
<td>{{ raising_view_name }}</td>
|
|
|
|
</tr>
|
|
|
|
{% endif %}
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<div id="info">
|
|
|
|
{% if urlpatterns %}
|
|
|
|
<p>
|
|
|
|
Using the URLconf defined in <code>{{ urlconf }}</code>,
|
|
|
|
Django tried these URL patterns, in this order:
|
|
|
|
</p>
|
|
|
|
<ol>
|
|
|
|
{% for pattern in urlpatterns %}
|
|
|
|
<li>
|
|
|
|
{% for pat in pattern %}
|
|
|
|
{{ pat.regex.pattern }}
|
|
|
|
{% if forloop.last and pat.name %}[name='{{ pat.name }}']{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ol>
|
|
|
|
<p>
|
|
|
|
{% if request_path %}
|
2017-08-01 22:52:29 +08:00
|
|
|
The current path, <code>{{ request_path }}</code>,{% else %}
|
2017-04-01 23:31:54 +08:00
|
|
|
The empty path{% endif %} didn't match any of these.
|
|
|
|
</p>
|
|
|
|
{% else %}
|
|
|
|
<p>{{ reason }}</p>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="explanation">
|
|
|
|
<p>
|
|
|
|
You're seeing this error because you have <code>DEBUG = True</code> in
|
|
|
|
your Django settings file. Change that to <code>False</code>, and Django
|
|
|
|
will display a standard 404 page.
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|