Use the X-Sendfile headers to tell your server that which file the server really is.
@check_permissions
def image(request):
response = HttpResponse(mimetype='image/png')
response['X-Sendfile'] = "/real/path/to/image.png"
return response
. , , Satchmo LoadableProduct.
, nginx lighttpd X-Accel-Redirect X-LIGHTTPD-send-file X-Sendfile.