#35966: Support `check` for invalid `template_name` string in `TemplateView` and
other related types
-------------------------------------+-------------------------------------
Reporter: Sobolev Nikita | Owner: (none)
Type: New feature | Status: closed
Component: Core (System | Version: 5.1
checks) |
Severity: Normal | Resolution: wontfix
Keywords: checks, views, | Triage Stage:
template_name | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce):
* component: Core (Management commands) => Core (System checks)
* resolution: => wontfix
* status: new => closed
Comment:
Hi Sobolev, thank you for the ticket
Before we accept new features for Django, we first want to see this being
discussed with the broader community to check we're all aligned for the
addition.
Could you start a new conversation on the
[https://forum.djangoproject.com/c/internals/5 Django Forum]? You'll reach
a broader audience and receive additional feedback
I'll close the ticket for now, but if the community agrees with the
proposal, please return to this ticket and reference the forum discussion
so we can re-open it.
For more information, please refer to
[https://docs.djangoproject.com/en/stable/internals/contributing/bugs-and-
features/#requesting-features the documented guidelines for requesting
features].
---
In terms of my thoughts... This would be for anything that inherits from
`TemplateResponseMixin`. People can define their own `get_template_names`
method (this either raises a `ImproperlyConfigured` error or returns a
list of template names). Note that you can also have `template_name` as an
init kwarg like `MyView.as_view(template_name="my.html")`. So in short, it
might not be as simple as it seems, hence I'd like to see a bunch of
people saying they'd find this useful 👍
--
Ticket URL: <https://code.djangoproject.com/ticket/35966#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/django-updates/010701938c0252f5-2c55bdb7-3107-4543-a1f9-2534b0ee7f47-000000%40eu-central-1.amazonses.com.