Ticket #15745: debug_false_error_text.diff
File debug_false_error_text.diff, 1.7 KB (added by , 14 years ago) |
---|
-
django/views/debug.py
752 752 {% if not is_email %} 753 753 <div id="explanation"> 754 754 <p> 755 You're seeing this error because you have <code>DEBUG = True</code> in your 755 756 {% if is_email %} 757 You're receiving this email because <code>DEBUG = False</code> in 758 your Django settings file and you are listed as an admin. 759 Change DEBUG to <code>False</code>, and Django will display a special error message on the page instead of sending you this email. 760 {% else %} 761 You're seeing this error because you have <code>DEBUG = True</code> in your 756 762 Django settings file. Change that to <code>False</code>, and Django will 757 display a standard 500 page. 763 display a standard 500 page and email this error to addresses listed in the ADMIN setting. 764 {% endif %} 765 766 758 767 </p> 759 768 </div> 760 769 {% endif %} … … 825 834 826 835 <div id="explanation"> 827 836 <p> 837 {% if is_email %} 838 You're receiving this email because <code>DEBUG = False</code> in 839 your Django settings file and you are listed as an admin. 840 Change DEBUG to <code>False</code>, and Django will display a special error message on the page instead of sending you this email. 841 {% else %} 828 842 You're seeing this error because you have <code>DEBUG = True</code> in 829 843 your Django settings file. Change that to <code>False</code>, and Django 830 will display a standard 404 page. 844 will display a standard 404 page and email this error to addresses listed in the ADMIN setting. 845 {% endif %} 831 846 </p> 832 847 </div> 833 848 </body>