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 %} """