@block_user_agents
@require_GET
@allow_CORS_GET
@process_document_path
@prevent_indexing
def styles(request, document_slug=None, document_locale=None):
 kwargs = {'slug': document_slug, 'locale': document_locale}
 document = get_object_or_404(Document, **kwargs)
 zone = get_object_or_404(DocumentZone, document=document)
 return HttpResponse(zone.styles, content_type='text/css')

@ block_user_agents @ require_GET @ allow_CORS_GET @ process_document_path @ prevent_indexing def styles ( request , document_slug = None , document_locale = None ) : kwargs = { 'slug' : document_slug , 'locale' : document_locale } document = get_object_or_404 ( Document , ** kwargs ) zone = get_object_or_404 ( DocumentZone , document = document ) return HttpResponse ( zone . styles , content_type = 'text/css' )
return the document zone stylsheet .