Template debug gives misleading error for exceptions with django.core.urlresolvers.resolve
|Reported by:||ellisd23@…||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
If a path sent to resolve is not found and a Resolver404 error is raised, the template debugger assumes that the path is missing is the current request path, which is not always the case. For instance, my application uses resolve to get a namespace for a path dynamically. This lead to a nonsensical error that listed my urlconf, followed by a request path that was quite clearly in the URLs, saying it was not found.