'Renders a standalone page for the specified fragment.
Note: if fragment is None, a 204 response will be returned (no content).'

def render_standalone_response(self, request, fragment, **kwargs):

    if (fragment is None):
        return HttpResponse(status=204)
    context = self.create_base_standalone_context(request, fragment, **kwargs)
    self._add_studio_standalone_context_variables(request, context)
    context.update({'settings': settings, 'fragment': fragment, 'page_title': self.standalone_page_title(request, fragment, **kwargs)})
    if context.get('uses_pattern_library', False):
        template = 'fragments/standalone-page-v2.html'
    elif context.get('uses_bootstrap', False):
        template = 'fragments/standalone-page-bootstrap.html'
    else:
        template = 'fragments/standalone-page-v1.html'
    return render_to_response(template, context)
