Ticket #2437: debug-pastebin.patch

File debug-pastebin.patch, 1.1 KB (added by dummy@…, 18 years ago)

Quick Copy to pastebin

  • django/views/debug.py

     
    414414{% endfor %}<br/>
    415415&nbsp;&nbsp;{{ exception_type }} at {{ request.path }}<br/>
    416416&nbsp;&nbsp;{{ exception_value|escape }}</code>
     417<form action="http://django.pastebin.com/pastebin.php" name="editor" method="POST">
     418<input type="hidden" name="parent_pid" value="" />
     419<input type="hidden" name="format" value="python" />
     420<input type="hidden" name="poster" value="traceback" />
     421<input type="hidden" name="expiry" value="m" />
     422<input type="submit" name="paste" value="paste traceback at http://django.pastebin.com"/>
     423<textarea name="code2" cols="10" rows="1" style="visibility:hidden;">
     424Traceback (most recent call last):
     425{% for frame in frames %}  File "{{ frame.filename }}" in {{ frame.function }}
     426  {% if frame.context_line %}  {{ frame.lineno }}. {{ frame.context_line }} {% endif %}
     427{% endfor %}
     428
     429{{ exception_type }} at {{ request.path }}
     430
     431{{ exception_value }}
     432</textarea>
     433</form>
    417434          </td>
    418435        </tr>
    419436      </tbody>
Back to Top