Development of an internal social media platform with personalised dashboards for students
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

technical_404.html 2.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. </style>
  24. </head>
  25. <body>
  26. <div id="summary">
  27. <h1>Page not found <span>(404)</span></h1>
  28. <table class="meta">
  29. <tr>
  30. <th>Request Method:</th>
  31. <td>{{ request.META.REQUEST_METHOD }}</td>
  32. </tr>
  33. <tr>
  34. <th>Request URL:</th>
  35. <td>{{ request.build_absolute_uri }}</td>
  36. </tr>
  37. {% if raising_view_name %}
  38. <tr>
  39. <th>Raised by:</th>
  40. <td>{{ raising_view_name }}</td>
  41. </tr>
  42. {% endif %}
  43. </table>
  44. </div>
  45. <div id="info">
  46. {% if urlpatterns %}
  47. <p>
  48. Using the URLconf defined in <code>{{ urlconf }}</code>,
  49. Django tried these URL patterns, in this order:
  50. </p>
  51. <ol>
  52. {% for pattern in urlpatterns %}
  53. <li>
  54. {% for pat in pattern %}
  55. {{ pat.pattern }}
  56. {% if forloop.last and pat.name %}[name='{{ pat.name }}']{% endif %}
  57. {% endfor %}
  58. </li>
  59. {% endfor %}
  60. </ol>
  61. <p>
  62. {% if request_path %}
  63. The current path, <code>{{ request_path }}</code>,{% else %}
  64. The empty path{% endif %} didn't match any of these.
  65. </p>
  66. {% else %}
  67. <p>{{ reason }}</p>
  68. {% endif %}
  69. </div>
  70. <div id="explanation">
  71. <p>
  72. You're seeing this error because you have <code>DEBUG = True</code> in
  73. your Django settings file. Change that to <code>False</code>, and Django
  74. will display a standard 404 page.
  75. </p>
  76. </div>
  77. </body>
  78. </html>