[Django] #29383: Error during template rendering - error page helps only a little

8 views
Skip to first unread message

Django

unread,
May 6, 2018, 6:35:47 AM5/6/18
to django-...@googlegroups.com
#29383: Error during template rendering - error page helps only a little
------------------------------------------------+------------------------
Reporter: Pietro Bernardi | Owner: (none)
Type: Cleanup/optimization | Status: new
Component: Error reporting | Version: 1.11
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 1 |
------------------------------------------------+------------------------
Hi,

the case:

NoReverseMatch error
Reverse for '<smth>' with arguments '<smth else>' not found.
Error during template rendering
In template <path_to_template>/base.html, error at line 0

I don't know where the error is, I must discover it (and correct it ;),
but sure it isn't at line 0 of base.html template.
(I know, it's a point where the error blowed up)

Regards

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

Django

unread,
May 6, 2018, 11:59:29 AM5/6/18
to django-...@googlegroups.com
#29383: Error during template rendering - error page helps only a little
-------------------------------------+-------------------------------------

Reporter: Pietro Bernardi | Owner: (none)
Type: | Status: new
Cleanup/optimization |

Component: Error reporting | Version: 1.11
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: 1
-------------------------------------+-------------------------------------

Comment (by Tim Graham):

Can you please give a sample project that reproduces the issue?

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

Django

unread,
May 6, 2018, 2:04:59 PM5/6/18
to django-...@googlegroups.com
#29383: Error during template rendering - error page helps only a little
-------------------------------------+-------------------------------------

Reporter: Pietro Bernardi | Owner: (none)
Type: | Status: new
Cleanup/optimization |

Component: Error reporting | Version: 1.11
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: 1
-------------------------------------+-------------------------------------

Comment (by Pietro Bernardi):

I can, of course, it's my duty, I think. But not **right now** - project
deadline, you sure know it ;) Later. Hope I'll be able to do a minimum
working example soon.

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

Django

unread,
May 6, 2018, 7:37:23 PM5/6/18
to django-...@googlegroups.com
#29383: Error during template rendering - error page helps only a little
-------------------------------------+-------------------------------------

Reporter: Pietro Bernardi | Owner: (none)
Type: | Status: closed
Cleanup/optimization |

Component: Error reporting | Version: 1.11
Severity: Normal | Resolution: needsinfo

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

* status: new => closed
* resolution: => needsinfo


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

Django

unread,
May 26, 2018, 6:00:46 AM5/26/18
to django-...@googlegroups.com
#29383: Error during template rendering - error page helps only a little
-------------------------------------+-------------------------------------

Reporter: Pietro Bernardi | Owner: (none)
Type: | Status: closed
Cleanup/optimization |

Component: Error reporting | Version: 1.11
Severity: Normal | Resolution: needsinfo

Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 1
-------------------------------------+-------------------------------------

Comment (by Shai Berger):

Could be related to #29446

--
Ticket URL: <https://code.djangoproject.com/ticket/29383#comment:4>

Django

unread,
May 26, 2018, 7:41:32 AM5/26/18
to django-...@googlegroups.com
#29383: Error during template rendering - error page helps only a little
-------------------------------------+-------------------------------------

Reporter: Pietro Bernardi | Owner: (none)
Type: | Status: closed
Cleanup/optimization |

Component: Error reporting | Version: 1.11
Severity: Normal | Resolution: needsinfo

Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 1
-------------------------------------+-------------------------------------

Comment (by Pietro Bernardi):

Yes, it's related, but my main displeasure was this:

In template <path_to_template>/base.html, error at line 0

I'm sure no one of my templates has line 0, each one starts with line 1

--
Ticket URL: <https://code.djangoproject.com/ticket/29383#comment:5>

Django

unread,
May 28, 2018, 8:56:50 AM5/28/18
to django-...@googlegroups.com
#29383: Error during template rendering - error page helps only a little
-------------------------------------+-------------------------------------

Reporter: Pietro Bernardi | Owner: (none)
Type: | Status: closed
Cleanup/optimization |

Component: Error reporting | Version: 1.11
Severity: Normal | Resolution: needsinfo

Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 1
-------------------------------------+-------------------------------------

Comment (by Pietro Bernardi):

I can explain MWE - it happens whenever I've error in url(...,
name='smth') argoment. Better debug help should be point to place in
template (but real one), where involved line is, line with corresponding
{% url 'appname:viewsprocname' %}, not to line 0 of base.html (which BTW
is nonexistent, file starts with line 1)

Just my 5 cents

--
Ticket URL: <https://code.djangoproject.com/ticket/29383#comment:6>

Reply all
Reply to author
Forward
0 new messages