Ticket #3942: debug.patch

File debug.patch, 843 bytes (added by Collin Grady <cgrady@…>, 18 years ago)
  • django/views/debug.py

     
    144144    t = Template(TECHNICAL_404_TEMPLATE, name='Technical 404 template')
    145145    c = Context({
    146146        'root_urlconf': settings.ROOT_URLCONF,
     147        'request_path': request.path[1:],
    147148        'urlpatterns': tried,
    148149        'reason': str(exception),
    149150        'request': request,
     
    591592          <li>{{ pattern|escape }}</li>
    592593        {% endfor %}
    593594      </ol>
    594       <p>The current URL, <code>{{ request.path|escape }}</code>, didn't match any of these.</p>
     595      <p>The current URL, <code>{{ request_path|escape }}</code>, didn't match any of these.</p>
    595596    {% else %}
    596597      <p>{{ reason|escape }}</p>
    597598    {% endif %}
Back to Top