[Django] #28526: Remedy verbose, often unhelpful undefined tempate variable logging

6 views
Skip to first unread message

Django

unread,
Aug 24, 2017, 11:10:14 AM8/24/17
to django-...@googlegroups.com
#28526: Remedy verbose, often unhelpful undefined tempate variable logging
------------------------------------------------+------------------------
Reporter: Tim Graham | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Template system | Version: master
Severity: Normal | Keywords:
Triage Stage: Accepted | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
------------------------------------------------+------------------------
As [https://groups.google.com/d/topic/django-
developers/zdULZcmAWNw/discussion discussed on django-developers], ticket
#18773 added logging of undefined template variables in Django 1.9
[dc5b01ad05e50ccde688c73c2ed3334a956076b0], however, I've seen several
reports of users finding this logging more confusing than helpful. For
example, [https://groups.google.com/forum/#!topic/django-
users/6Ve9dcv23sI/discussion admin templates log errors about missing
is_popup variables] which is how the template are designed (is_popup is
only in the contexts of pop ups) and the `TECHNICAL_404_TEMPLATE` (now
`django/views/templates/technical_404.html`) also logs errors (#26886)
without any obvious solution about how to prevent that. Also #28516 shows
the many warnings logged for an admin changelist page.

--
Ticket URL: <https://code.djangoproject.com/ticket/28526>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jan 22, 2021, 8:04:24 AM1/22/21
to django-...@googlegroups.com
#28526: Remedy verbose, often unhelpful undefined tempate variable logging
-------------------------------------+-------------------------------------
Reporter: Tim Graham | Owner: Tim
Type: | McCurrach
Cleanup/optimization | Status: assigned

Component: Template system | Version: master
Severity: Normal | Resolution:

Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim McCurrach):

* owner: nobody => Tim McCurrach
* status: new => assigned


--
Ticket URL: <https://code.djangoproject.com/ticket/28526#comment:1>

Django

unread,
Jun 1, 2023, 7:20:49 AM6/1/23
to django-...@googlegroups.com
#28526: Remedy verbose, often unhelpful undefined tempate variable logging
-------------------------------------+-------------------------------------
Reporter: Tim Graham | Owner: Tim
Type: | McCurrach
Cleanup/optimization | Status: assigned
Component: Template system | Version: dev
Severity: Normal | Resolution:

Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim McCurrach):

* owner: nobody => Tim McCurrach
* status: new => assigned

Django

unread,
Jun 2, 2023, 10:52:09 AM6/2/23
to django-...@googlegroups.com
#28526: Remedy verbose, often unhelpful undefined tempate variable logging
--------------------------------------+------------------------------------
Reporter: Tim Graham | Owner: (none)
Type: Cleanup/optimization | Status: new
Component: Template system | Version: dev
Severity: Normal | Resolution:

Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by Tim McCurrach):

* owner: Tim McCurrach => (none)
* status: assigned => new


--
Ticket URL: <https://code.djangoproject.com/ticket/28526#comment:2>

Django

unread,
Aug 23, 2024, 9:21:56 AM8/23/24
to django-...@googlegroups.com
#28526: Remedy verbose, often unhelpful undefined tempate variable logging
--------------------------------------+------------------------------------
Reporter: Tim Graham | Owner: (none)
Type: Cleanup/optimization | Status: new
Component: Template system | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by Adam Johnson):

* cc: Adam Johnson (added)

--
Ticket URL: <https://code.djangoproject.com/ticket/28526#comment:3>

Django

unread,
Aug 28, 2024, 9:02:48 AM8/28/24
to django-...@googlegroups.com
#28526: Remedy verbose, often unhelpful undefined tempate variable logging
--------------------------------------+------------------------------------
Reporter: Tim Graham | Owner: (none)
Type: Cleanup/optimization | Status: new
Component: Template system | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Comment (by Natalia Bidart):

Ticket #35716 is related, possibly a duplicate.
--
Ticket URL: <https://code.djangoproject.com/ticket/28526#comment:4>
Reply all
Reply to author
Forward
0 new messages