Django

Code

Ticket #3942 (closed: fixed)

Opened 2 years ago

Last modified 2 years ago

Trim leading slash from request.path on debug 404 page

Reported by: Collin Grady <cgrady@the-magi.us> Assigned to: jacob
Milestone: Component: Uncategorized
Version: SVN Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 1 Needs documentation:
Needs tests: Patch needs improvement:

Description

At present, the debug 404 page lists the urls.py matches, which will not have leading slashes "foo/" for example, but it shows request.path with the leading slash - this can cause confusion to new users, as they might have "/foo/" and see it saying /foo/ didn't match.

With this patch, error message will list only the remainder, minus the leading slash.

Attachments

debug.patch (0.8 kB) - added by Collin Grady <cgrady@the-magi.us> on 04/05/07 19:41:24.

Change History

04/05/07 19:41:24 changed by Collin Grady <cgrady@the-magi.us>

  • attachment debug.patch added.

04/08/07 20:10:26 changed by adrian

  • status changed from new to closed.
  • resolution set to fixed.

(In [4959]) Fixed #3942 -- Fixed potential confusion on debug 404 page by stripping initial slash from the display of the current URL. Thanks, Collin Grady


Add/Change #3942 (Trim leading slash from request.path on debug 404 page)




Change Properties
Action