﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
27508	Debug 404 page shouldn't include the request path prefix in the description of URLconf matching	Tzu-ping Chung	nobody	"When I served a site under a prefix, and the site gets a 404, the default (debug) page shows something like


{{{
Using the URLconf defined in ..., Django tried these URL patterns, in this order:

1. ^foo/$
2. ^bar/whatever$

The current URL, prefix/foo/bar/, didn't match any of these.
}}}

The “The current URL” part shows the complete path, i.e. with the prefix I served Django under. This is very confusing because Django does not actually match it with the patterns. Looking into the code it seems the 404 handler (django.views.defaults.page_not_found) should use request.path_info instead of request.path in its context."	Cleanup/optimization	closed	Error reporting	dev	Normal	worksforme			Accepted	0	0	0	0	0	0
