Changes between Initial Version and Version 2 of Ticket #31780


Ignore:
Timestamp:
Jul 11, 2020, 5:05:36 PM (4 years ago)
Author:
Tom Forbes
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31780

    • Property Type UncategorizedNew feature
  • Ticket #31780 – Description

    initial v2  
    22
    33If we can include just a raw Python traceback in the footer of the debug page as a HTML comment then this will be immediately discoverable in such situations. `print(html_response)` and `curl` would both show it without needing any scrolling or grepping.
     4
     5As a concrete example:
     6
     7
     8{{{
     9print(html)
     10.... lots of text
     11
     12</div>
     13  <div id="explanation">
     14    <p>
     15      You’re seeing this error because you have <code>DEBUG = True</code> in your
     16      Django settings file. Change that to <code>False</code>, and Django will
     17      display a standard page generated by the handler for this status code.
     18    </p>
     19  </div>
     20<!--
     21Traceback (most recent call last):
     22  File "/path/to/example.py", line 4, in <module>
     23    greet('Chad')
     24  File "/path/to/example.py", line 2, in greet
     25    print('Hello, ' + someon)
     26NameError: name 'someon' is not defined
     27-->
     28</body>
     29</html>
     30}}}
Back to Top