class documentation
class TemplateResponseMixin: (source)
Known subclasses: django.views.generic.detail.SingleObjectTemplateResponseMixin
, django.views.generic.FormView
, django.views.generic.list.MultipleObjectTemplateResponseMixin
, django.views.generic.TemplateView
A mixin that can be used to render a template.
Method | get |
Return a list of template names to be used for the request. Must return a list. May not be called if render_to_response() is overridden. |
Method | render |
Return a response, using the `response_class` for this view, with a template rendered with the given context. |
Class Variable | content |
Undocumented |
Class Variable | template |
Undocumented |
Class Variable | template |
Undocumented |
overridden in
django.views.generic.detail.SingleObjectTemplateResponseMixin
, django.views.generic.list.MultipleObjectTemplateResponseMixin
Return a list of template names to be used for the request. Must return a list. May not be called if render_to_response() is overridden.
Return a response, using the `response_class` for this view, with a template rendered with the given context. Pass response_kwargs to the constructor of the response class.