﻿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
21435	Improved error message for reverse v. reverse_lazy	Elena Williams	Bas Peschier	"{{{
ImproperlyConfigured: The included urlconf %s doesn't have any patterns in it.
}}}

Uninformative foremost as '''%s''' is top-level urls (problem usually in included urls).

Caused by using '''reverse''' rather than '''reverse_lazy''' in some view.

No feedback whatsoever is given as to:
- that the error is caused in view rather than url
- which view this might be, or even which app it is in


'''Context:''' You get this error starting the developer server. The error is cached (#11712) and fixing it doesn't make the error go away adding to the confusion.[[BR]]
'''Suggestion:''' At least more specificity as to where the error lies.

Related tickets:

- https://code.djangoproject.com/ticket/17084
- https://code.djangoproject.com/ticket/15685
- https://code.djangoproject.com/ticket/11712  


The above added here: https://code.djangoproject.com/wiki/BetterErrorMessages


Appears be reproducible by adding to any view:

{{{
from django.core.urlresolvers import reverse
    
class DetailView(generic.DetailView):
    ...
    attr = reverse('anything')
}}}

"	Cleanup/optimization	closed	Core (URLs)	1.6	Normal	fixed	nlsprint14	eromijn@…	Ready for checkin	1	0	0	0	0	0
