technical_404.html 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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 type="text/css">
  8. html * { padding:0; margin:0; }
  9. body * { padding:10px 20px; }
  10. body * * { padding:0; }
  11. body { font:small sans-serif; background:#eee; color:#000; }
  12. body>div { border-bottom:1px solid #ddd; }
  13. h1 { font-weight:normal; margin-bottom:.4em; }
  14. h1 span { 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. <div id="summary">
  28. <h1>Page not found <span>(404)</span></h1>
  29. {% if reason and resolved %}<pre class="exception_value">{{ reason }}</pre>{% endif %}
  30. <table class="meta">
  31. <tr>
  32. <th>Request Method:</th>
  33. <td>{{ request.META.REQUEST_METHOD }}</td>
  34. </tr>
  35. <tr>
  36. <th>Request URL:</th>
  37. <td>{{ request.build_absolute_uri }}</td>
  38. </tr>
  39. {% if raising_view_name %}
  40. <tr>
  41. <th>Raised by:</th>
  42. <td>{{ raising_view_name }}</td>
  43. </tr>
  44. {% endif %}
  45. </table>
  46. </div>
  47. <div id="info">
  48. {% if urlpatterns %}
  49. <p>
  50. Using the URLconf defined in <code>{{ urlconf }}</code>,
  51. Django tried these URL patterns, in this order:
  52. </p>
  53. <ol>
  54. {% for pattern in urlpatterns %}
  55. <li>
  56. {% for pat in pattern %}
  57. {{ pat.pattern }}
  58. {% if forloop.last and pat.name %}[name='{{ pat.name }}']{% endif %}
  59. {% endfor %}
  60. </li>
  61. {% endfor %}
  62. </ol>
  63. <p>
  64. {% if request_path %}
  65. The current path, <code>{{ request_path }}</code>,
  66. {% else %}
  67. The empty path
  68. {% endif %}
  69. {% if resolved %}matched the last one.{% else %}didn’t match any of these.{% endif %}
  70. </p>
  71. {% endif %}
  72. </div>
  73. <div id="explanation">
  74. <p>
  75. You’re seeing this error because you have <code>DEBUG = True</code> in
  76. your Django settings file. Change that to <code>False</code>, and Django
  77. will display a standard 404 page.
  78. </p>
  79. </div>
  80. </body>
  81. </html>