﻿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
37296	Include the received type in the path()/re_path() error message for an invalid view	osmnvaslan	osmnvaslan	"path() and re_path() raise a generic TypeError when the view argument is neither a callable, a list/tuple (as returned by include()), nor a View instance:
view must be a callable or a list/tuple in the case of include().

The message doesn't report what was actually passed, unlike the two neighboring error branches in django/urls/conf.py: the invalid kwargs branch (#33351) ends with but got {kwargs.__class__.__name__}., and the View instance branch says pass {name}.as_view(), not {name}().

A common way to reach this branch is passing a string view — the pre-1.10 url(r"""", ""app.views.home"") style, removed in Django 2.0 — where the current message gives no hint that a str was the problem.

Proposal: append the received type, consistent with the sibling branches:
view must be a callable or a list/tuple in the case of include(), but got str.
A patch is ready, including a regression test that updates the existing test_invalid_view."	Cleanup/optimization	assigned	Core (URLs)	dev	Normal				Unreviewed	1	0	0	0	1	0
