﻿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
26440	Add check that all items in url patterns are url instances	Alasdair Nicol	Burhan Khalid	"If you include a tuple instead of a `url()` instance in your urlpatterns, the checks framework throws an error which isn't very helpful.

{{{
urlpatterns = ['', # leading string might be left by users converting from patterns() in earlier Django versions
    (r'^$', my_view),
    url(r'^admin/', admin.site.urls),
]
}}}

{{{
  File ""site-packages/django/core/checks/urls.py"", line 67, in check_pattern_startswith_slash
    regex_pattern = pattern.regex.pattern
AttributeError: 'tuple' object has no attribute 'regex'
}}}

I suggest that we should create a new warning if the pattern is not a `url()` instance."	Cleanup/optimization	closed	Core (System checks)	dev	Normal	fixed			Ready for checkin	1	0	0	0	1	0
