summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Tracey <kmtracey@gmail.com>2011-03-14 14:58:54 +0000
committerKaren Tracey <kmtracey@gmail.com>2011-03-14 14:58:54 +0000
commitf1f10a9ce2d8cd8df0dbd4b922fd2dba335a3770 (patch)
tree99ebc586a19ba99e3628c871226fd3680eb4fd29
parent12b5152233b145dbcb9061da781107d1a696b54e (diff)
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
-rw-r--r--django/views/debug.py17
1 files changed, 9 insertions, 8 deletions
diff --git a/django/views/debug.py b/django/views/debug.py
index 569cec18df..127d790aa4 100644
--- a/django/views/debug.py
+++ b/django/views/debug.py
@@ -756,14 +756,15 @@ Exception Value: {{ exception_value|force_escape }}
</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>
"""