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