def render(self, request, context, status=codes.ok, content_type=None,
            args=None, kwargs=None):
        "Expects the method handler to return the `context` for the template."

        if isinstance(self.template_name, (list, tuple)):
            template = loader.select_template(self.template_name)
        elif self.template_name:
            template = loader.get_template(self.template_name)
        else:
            template = loader.Template(self.template_string)

        context = RequestContext(request, context)
        content = template.render(context)

        return HttpResponse(content, status=status, content_type=content_type)
def render ( self , request , context , status = codes . ok , content_type = None , args = None , kwargs = None ) : if isinstance ( self . template_name , ( list , tuple ) ) : template = loader . select_template ( self . template_name ) elif self . template_name : template = loader . get_template ( self . template_name ) else : template = loader . Template ( self . template_string ) context = RequestContext ( request , context ) content = template . render ( context ) return HttpResponse ( content , status = status , content_type = content_type )
Expects the method handler to return the `context` for the template.