From f1f10a9ce2d8cd8df0dbd4b922fd2dba335a3770 Mon Sep 17 00:00:00 2001 From: Karen Tracey Date: Mon, 14 Mar 2011 14:58:54 +0000 Subject: [PATCH] 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 --- django/views/debug.py | 17 +++++++++-------- 1 file 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 }} - -
-

- You're seeing this error because you have DEBUG = True in your - Django settings file. Change that to False, and Django will - display a standard 500 page. -

-
+{% if not is_email %} +
+

+ You're seeing this error because you have DEBUG = True in your + Django settings file. Change that to False, and Django will + display a standard 500 page. +

+
+{% endif %} """