Ticket #15745: debug_false_error_text.diff

File debug_false_error_text.diff, 1.7 KB (added by jMyles, 14 years ago)
  • django/views/debug.py

     
    752752{% if not is_email %}
    753753  <div id="explanation">
    754754    <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
    756762      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     
    758767    </p>
    759768  </div>
    760769{% endif %}
     
    825834
    826835  <div id="explanation">
    827836    <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 %}
    828842      You're seeing this error because you have <code>DEBUG = True</code> in
    829843      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 %}
    831846    </p>
    832847  </div>
    833848</body>
Back to Top