Ticket #2437: django_dpaste.diff

File django_dpaste.diff, 1.6 KB (added by Simon G. <dev@…>, 18 years ago)
  • django/views/debug.py

     
    407407            <code>
    408408Traceback (most recent call last):<br/>
    409409{% for frame in frames %}
    410   File "{{ frame.filename }}" in {{ frame.function }}<br/>
     410  File "{{ frame.filename|escape }}" in {{ frame.function|escape }}<br/>
    411411  {% if frame.context_line %}
    412412    &nbsp;&nbsp;{{ frame.lineno }}. {{ frame.context_line|escape }}<br/>
    413413  {% endif %}
    414414{% endfor %}<br/>
    415 &nbsp;&nbsp;{{ exception_type }} at {{ request.path|escape }}<br/>
     415&nbsp;&nbsp;{{ exception_type|escape }} at {{ request.path|escape }}<br/>
    416416&nbsp;&nbsp;{{ exception_value|escape }}</code>
     417
     418<form action="http://dpaste.com/" id="pasteform" method="post">
     419<input type="hidden" name="language" value="PythonConsole" />
     420<input type="hidden" name="title" value="{{ exception_type|escape }} at {{ request.path|escape }}" />
     421<input type="hidden" name="source" value="Django Dpaste Agent" />
     422<input type="hidden" name="poster" value="Django" />
     423<input type="submit" value="paste traceback to dpaste.com" />
     424<textarea name="content" cols="140" rows="30" style="display:hidden;">
     425{% spaceless %}
     426Traceback (most recent call last):
     427{% for frame in frames %}
     428File "{{ frame.filename|escape }}" in {{ frame.function|escape }}
     429{% if frame.context_line %}{{ frame.lineno }}. {{ frame.context_line|escape }}{% endif %}
     430{% endfor %}
     431{{ exception_type|escape }} at {{ request.path|escape }}
     432{{ exception_value|escape }}
     433{% endspaceless %}
     434</textarea>
     435            </form>
    417436          </td>
    418437        </tr>
    419438      </tbody>
Back to Top