#26886: Wrong warnings during template rendering
---------------------------------+--------------------------------------
Reporter: None | Owner: None
Type: Bug | Status: new
Component: Error reporting | Version: 1.9
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+--------------------------------------
Changes (by Tim Graham):
* component: Template system => Error reporting
Comment:
The error comes from the
[https://github.com/django/django/blob/a44fc008c4e38fadef04021fdba564949f1aee3a/django/views/debug.py#L1191
TECHNICAL_404_TEMPLATE]: `{% if forloop.last and pat.name %}[name='{{
pat.name }}']{% endif %}`
There isn't a problem besides the confusing logging. The error occurs
because `RegexURLResolver` doesn't have a name attribute so the exception
is expected. Only a `RegexURLPattern` has a `name` in that loop. I'm not
sure if there's a simple solution to avoid that exception logging (added
in #18773).
--
Ticket URL: <https://code.djangoproject.com/ticket/26886#comment:3>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/068.e05fe6d3c7cdf64ad87cc329966ca3b1%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.