Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/343.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 如何在Django runserver中停用sendfile()_Python_Django_Apache_Nginx - Fatal编程技术网

Python 如何在Django runserver中停用sendfile()

Python 如何在Django runserver中停用sendfile(),python,django,apache,nginx,Python,Django,Apache,Nginx,我正在使用Vagrant/VirtualBox运行Django开发环境 我正在使用我的本地测试。但是,我遇到了这个错误: 这是一个与sendfile相关的VirtualBox bug,可能导致文件损坏或不更新。这是一个简单的修复,我只需要停用正在运行的Web服务器的sendfile 在Nginx中,这将是: sendfile off; EnableSendfile Off 在Apache中,这将是: sendfile off; EnableSendfile Off 如何在runserve

我正在使用Vagrant/VirtualBox运行Django开发环境

我正在使用我的本地测试。但是,我遇到了这个错误:

这是一个与
sendfile
相关的VirtualBox bug,可能导致文件损坏或不更新。这是一个简单的修复,我只需要停用正在运行的Web服务器的sendfile

在Nginx中,这将是:

sendfile off;
EnableSendfile Off
在Apache中,这将是:

sendfile off;
EnableSendfile Off
如何在
runserver
中停用
sendfile