﻿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
17076	Report the number of patterns tried when reversing	wilfred@…	nobody	"Relevant django-dev discussion: http://groups.google.com/group/django-developers/browse_thread/thread/d3bcc13fff8d7320

It would be great to know which patterns were tested when `NoReverseMatch` is thrown. This would help distinguish between ""I've typed the URL name incorrectly"" and ""I've missed a keyword argument for this URL"".

Patch attached, I would welcome feedback.

The current patch produces the following exception if the URL name is wrong:

`NoReverseMatch: Reverse for 'incorrect_url_name' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried: []`

And the following exception if a keyword argument is missing:

`NoReverseMatch: Reverse for 'needs_exactly_one_kwargs' with arguments '()' and keyword arguments '{}' not found. 1 pattern(s) tried: ['user/(?P<user_id>\\d+)/update/$']`

"	Cleanup/optimization	closed	Core (URLs)	1.3	Normal	fixed	reverse		Accepted	1	0	1	1	0	0
