#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 |
Description
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
Change History (6)
comment:1 by , 7 years ago
comment:2 by , 7 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 , 7 years ago
Resolution: | → needsinfo |
---|---|
Status: | new → closed |
comment:5 by , 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 , 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
Can you please give a sample project that reproduces the issue?