﻿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
35966	Support `check` for invalid `template_name` string in `TemplateView` and other related types	Sobolev Nikita		"`python manage.py check` helps us to find a lot of problems before actually running the project itself / tests for it.

I think that one thing that we can also check statically is `template_name` strings in different views that we have set-up in `urls`.
These templates can be found using regular Django machinery and help finging issues sooner.

Basically, I expect:



{{{
from django.views.generic import TemplateView

class MyView(TemplateView):
     template_name = 'my.html'
}}}



to raise an error during `python manage.py check` if `my.html` cannot be found with `TEMPLATE` loader settings. When `MyView` is present in `urls.py` as:


{{{
urlpatterns = [
    path('/whatever', MyView.as_view(), name='whatever'),
]
}}}



What do others think?"	New feature	new	Core (Management commands)	5.1	Normal		checks, views, template_name	Sobolev Nikita	Unreviewed	0	0	0	0	0	0
