def render_to_response(self, context, **response_kwargs):
if self.request.is_ajax():<EOL><INDENT>template = self.page_template<EOL><DEDENT>else:<EOL><INDENT>template = self.get_template_names()<EOL><DEDENT>return self.response_class(<EOL>request=self.request,<EOL>template=template,<EOL>context=context,<EOL>**response_kwargs<EOL>)<EOL>
Returns a response with a template depending if the request is ajax 
or not and it renders with the given context.