mimetype = mimetypes.guess_type(settings.PROXY_BASE_URL + '/reports/' + ssn +
    '/' + validity + '/' + file)
return HttpResponse(response, content_type=mimetype[0])
Using Django Rest Framework as security layer for file system processing