Django断管错误

Django断管错误,django,broken-pipe,Django,Broken Pipe,我正在Django中运行应用程序,在本地runserver终端上出现以下错误: Starting development server at http://0.0.0.0:8000/ Quit the server with CONTROL-C. [31/Dec/2015 20:32:39] "GET / HTTP/1.1" 500 141859 Traceback (most recent call last): File "/usr/lib/python2.7/wsgiref/handl

我正在Django中运行应用程序,在本地runserver终端上出现以下错误:

Starting development server at http://0.0.0.0:8000/
Quit the server with CONTROL-C.
[31/Dec/2015 20:32:39] "GET / HTTP/1.1" 500 141859
Traceback (most recent call last):
  File "/usr/lib/python2.7/wsgiref/handlers.py", line 86, in run
    self.finish_response()
  File "/usr/lib/python2.7/wsgiref/handlers.py", line 127, in finish_response
    self.write(data)
  File "/usr/lib/python2.7/wsgiref/handlers.py", line 215, in write
    self._write(data)
  File "/usr/lib/python2.7/socket.py", line 324, in write
    self.flush()
  File "/usr/lib/python2.7/socket.py", line 303, in flush
    self._sock.sendall(view[write_offset:write_offset+buffer_size])
error: [Errno 32] Broken pipe
----------------------------------------
Exception happened during processing of request from ('192.168.33.1', 4507)
Traceback (most recent call last):
  File "/usr/lib/python2.7/SocketServer.py", line 582, in process_request_thread

    self.finish_request(request, client_address)
  File "/usr/lib/python2.7/SocketServer.py", line 323, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/home/vagrant/Envs/hellobands/local/lib/python2.7/site-packages/django/c
ore/servers/basehttp.py", line 126, in __init__
    super(WSGIRequestHandler, self).__init__(*args, **kwargs)
  File "/usr/lib/python2.7/SocketServer.py", line 640, in __init__
    self.finish()
  File "/usr/lib/python2.7/SocketServer.py", line 693, in finish
    self.wfile.flush()
  File "/usr/lib/python2.7/socket.py", line 303, in flush
    self._sock.sendall(view[write_offset:write_offset+buffer_size])
error: [Errno 32] Broken pipe
----------------------------------------
我完全不知道从哪里着手解决这个问题;以前有人见过这种错误类型吗?我从哪里开始调试这个?

客户端(可能是您的web浏览器)在Django的开发服务器期望它关闭连接之前关闭了连接。错误消息是无害的,尽管不整洁,并且不会出现在生产环境中,只会出现在开发服务器上


这些错误在中已被抑制,因此您可能可以通过升级到较新版本的Django来消除这些错误。

在控制台上是否看到除此错误以外的其他问题?可能是您的浏览器在Django的开发服务器预期连接关闭之前关闭了连接。