@require_GET
@allow_CORS_GET
@xframe_options_exempt
@process_document_path
def raw_code_sample_file(request, document_slug, document_locale, sample_name, attachment_id, filename):
 return redirect(full_attachment_url(attachment_id, filename))

@ require_GET @ allow_CORS_GET @ xframe_options_exempt @ process_document_path def raw_code_sample_file ( request , document_slug , document_locale , sample_name , attachment_id , filename ) : return redirect ( full_attachment_url ( attachment_id , filename ) )
a view redirecting to the real file serving view of the attachments app .