Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#15298 closed (fixed)

Nicer error message when TemplateResponseMixin not provided with a template_name

Reported by: rasca Owned by: nobody
Component: Generic views Version: master
Severity: Keywords: blocker
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


When I call a view that inherits TemplateResponseMixin without a template_name defined I get

TemplateDoesNotExist at ´whatever url we called´
No exception supplied

We could improve this by explaining the error either in template.response.TemplateResponse or views.generic.base.TemplateResponseMixin

Change History (3)

comment:1 Changed 7 years ago by Russell Keith-Magee

Triage Stage: UnreviewedAccepted

comment:2 Changed 7 years ago by Russell Keith-Magee

Resolution: fixed
Status: newclosed

In [15532]:

Fixed #15298 -- Raise a better error when a TemplateResponseMixin doesn't have a template_name defined. Thanks to rasca for the report.

comment:3 Changed 7 years ago by Jacob

milestone: 1.3

Milestone 1.3 deleted

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