class documentation

class TemplateResponseMixin:

Known subclasses: django.views.generic.detail.SingleObjectTemplateResponseMixin, django.views.generic.list.MultipleObjectTemplateResponseMixin, django.views.generic.FormView, django.views.generic.TemplateView

View In Hierarchy

A mixin that can be used to render a template.
Method get​_template​_names 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​_to​_response Return a response, using the response_class for this view, with a template rendered with the given context.
Class Variable content​_type Undocumented
Class Variable template​_engine Undocumented
Class Variable template​_name Undocumented
def get_template_names(self):
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.
def render_to_response(self, context, **response_kwargs):

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.

content_type =

Undocumented

template_engine =

Undocumented

template_name =