Opened 13 years ago

Closed 13 years ago

Last modified 13 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: dev
Severity: Keywords: blocker
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

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 by Russell Keith-Magee, 13 years ago

Triage Stage: UnreviewedAccepted

comment:2 by Russell Keith-Magee, 13 years ago

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 by Jacob, 13 years ago

milestone: 1.3

Milestone 1.3 deleted

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