Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#29383 closed Cleanup/optimization (needsinfo)

Error during template rendering - error page helps only a little

Reported by: Pietro Bernardi Owned by:
Component: Error reporting Version: 1.11
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: yes



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)


Change History (6)

comment:1 by Tim Graham, 6 years ago

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

comment:2 by Pietro Bernardi, 6 years ago

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.

comment:3 by Tim Graham, 6 years ago

Resolution: needsinfo
Status: newclosed

comment:4 by Shai Berger, 6 years ago

Could be related to #29446

comment:5 by Pietro Bernardi, 6 years ago

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

comment:6 by Pietro Bernardi, 6 years ago

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

Note: See TracTickets for help on using tickets.
Back to Top