Fixed #15597: When formatting the debug page for inclusion in an e-mail, suppress the note about "seeing this" because DEBUG is True.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15802 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
12b5152233
commit
f1f10a9ce2
|
@ -756,14 +756,15 @@ Exception Value: {{ exception_value|force_escape }}
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
{% if not is_email %}
|
||||||
<div id="explanation">
|
<div id="explanation">
|
||||||
<p>
|
<p>
|
||||||
You're seeing this error because you have <code>DEBUG = True</code> in your
|
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
|
Django settings file. Change that to <code>False</code>, and Django will
|
||||||
display a standard 500 page.
|
display a standard 500 page.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue