﻿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
14343	NoReverseMatch error message is unclear, view does exist	Diederik van der Boor	nobody	"As Django newcomer, the `NoReverseMatch` error appears confusing to me.
It took me about 1 hour to figure out my problem because the error message was unclear.
This might not be technically a bug but I believe this is a ""user experience"" bug.


----

This is the error message:

{{{
Caught NoReverseMatch while rendering: Reverse for 'webgtd-contexts-index' with arguments '()' and keyword arguments '{}' not found.
}}}

The line in error was:

{{{
<a accesskey=""c"" href=""{% url webgtd-contexts-index %}"">
}}}

The URLConf has the following entry:

{{{
    url(r'^contexts/(?P<id>\d*)$', 'todo.by_context', name='webgtd-contexts-index'),
}}}

The `todo` view looked like like:

{{{
def by_context(request, id=0):
    return index(request)
}}}

In my reasoning this parameter would be optional, but I was wrong.
The function signature looked fine to me, which made the error message confusing.

I've rewritten the regex now as: `'^contexts/(?P<id>\d+)?$'`.

----

Could you please improve the error message, so that it either:

 * ...mentions the view function does not exist at all.
 * ...mentions the view function does exist, but requires more parameters
 * ...mentions the URLconf regex pattern requires more parameters
"	Cleanup/optimization	closed	Core (URLs)	1.2	Normal	fixed	url, resolver		Accepted	0	0	0	0	0	0
