Opened 8 years ago
Last modified 2 weeks ago
#28526 new Cleanup/optimization
Remedy verbose, often unhelpful undefined template variable logging
Reported by: | Tim Graham | Owned by: | |
---|---|---|---|
Component: | Template system | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Adam Johnson | Triage Stage: | Accepted |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
As 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, 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.
Change History (11)
comment:1 by , 2 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 2 years ago
Owner: | removed |
---|---|
Status: | assigned → new |
comment:3 by , 14 months ago
Cc: | added |
---|
comment:4 by , 14 months ago
comment:5 by , 3 weeks ago
Has patch: | set |
---|---|
Owner: | set to |
Status: | new → assigned |
comment:6 by , 3 weeks ago
Patch needs improvement: | set |
---|
comment:7 by , 3 weeks ago
Patch needs improvement: | unset |
---|
comment:8 by , 2 weeks ago
Summary: | Remedy verbose, often unhelpful undefined tempate variable logging → Remedy verbose, often unhelpful undefined template variable logging |
---|
comment:9 by , 2 weeks ago
Triage Stage: | Accepted → Ready for checkin |
---|
comment:11 by , 2 weeks ago
Has patch: | unset |
---|---|
Owner: | removed |
Status: | assigned → new |
Triage Stage: | Ready for checkin → Accepted |
Ticket #35716 is related, possibly a duplicate.