Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #15597: When formatting the debug page for inclusion in an e-ma…

…il, 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
  • Loading branch information...
commit f1f10a9ce2d8cd8df0dbd4b922fd2dba335a3770 1 parent 12b5152
@kmtracey kmtracey authored
Showing with 9 additions and 8 deletions.
  1. +9 −8 django/views/debug.py
View
17 django/views/debug.py
@@ -756,14 +756,15 @@ def empty_urlconf(request):
</table>
</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 500 page.
- </p>
-</div>
+{% if not is_email %}
+ <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 500 page.
+ </p>
+ </div>
+{% endif %}
</body>
</html>
"""
Please sign in to comment.
Something went wrong with that request. Please try again.