diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-04-13 09:15:04 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-13 09:15:04 +0200 |
| commit | 3b8527e32b665df91622649550813bb1ec9a9251 (patch) | |
| tree | b4488c1d77128e7690d37b7598fa2dc9be2060c0 /django/views/templates | |
| parent | b8bb9e1549aa7086c20deae81e3b90b363b4f159 (diff) | |
Fixed #32637 -- Restored exception message on technical 404 debug page.
Thanks Atul Varma for the report.
Diffstat (limited to 'django/views/templates')
| -rw-r--r-- | django/views/templates/technical_404.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/views/templates/technical_404.html b/django/views/templates/technical_404.html index 077bb20964..aeba2daf9c 100644 --- a/django/views/templates/technical_404.html +++ b/django/views/templates/technical_404.html @@ -20,11 +20,13 @@ #info ol li { font-family: monospace; } #summary { background: #ffc; } #explanation { background:#eee; border-bottom: 0px none; } + pre.exception_value { font-family: sans-serif; color: #575757; font-size: 1.5em; margin: 10px 0 10px 0; } </style> </head> <body> <div id="summary"> <h1>Page not found <span>(404)</span></h1> + {% if reason %}<pre class="exception_value">{{ reason }}</pre>{% endif %} <table class="meta"> <tr> <th>Request Method:</th> @@ -66,8 +68,6 @@ {% endif %} {% if resolved %}matched the last one.{% else %}didn’t match any of these.{% endif %} </p> - {% else %} - <p>{{ reason }}</p> {% endif %} </div> |
