views.generic.base.ContextMixin

class django.views.generic.base.ContextMixin Methods

2016-10-09 18:40:47
views.generic.base.ContextMixin.get_context_data()

get_context_data(**kwargs) Returns a dictionary representing the template context. The keyword arguments provided will make

2016-10-09 18:40:47
views.generic.base.TemplateResponseMixin

class django.views.generic.base.TemplateResponseMixin Provides a mechanism to construct a

2016-10-09 18:40:48
views.generic.base.TemplateResponseMixin.template_name

template_name The full name of a template to use as defined by a string. Not defining a template_name will raise

2016-10-09 18:40:49
views.generic.base.TemplateResponseMixin.render_to_response()

render_to_response(context, **response_kwargs) Returns a self.response_class instance. If

2016-10-09 18:40:49
views.generic.base.TemplateResponseMixin.template_engine

template_engine The NAME of a template engine to use for loading the template. template_engine is

2016-10-09 18:40:49
views.generic.base.TemplateResponseMixin.content_type

content_type The content type to use for the response. content_type is passed as a keyword argument to r

2016-10-09 18:40:48
views.generic.base.TemplateResponseMixin.get_template_names()

get_template_names() Returns a list of template names to search for when rendering the template. The first template that is

2016-10-09 18:40:48
views.generic.base.TemplateResponseMixin.response_class

response_class The response class to be returned by render_to_response method. Default is

2016-10-09 18:40:49