pycharm调试器中的Django(pydev)吐出破坏的管道错误

时间:2012-02-27 15:03:01

标签: python django pydev pycharm

当我在pycharm调试器中运行django时,它变得非常慢,一段时间后它会吐出Broken pipe错误。任何想法如何解决这一问题?您可以在下面看到控制台的输出:

[27/Feb/2012 15:44:24] "GET /media/tools/flexigrid/acme/images/load.gif HTTP/1.1" 200 1737
[27/Feb/2012 15:44:24] "GET /contextual-help/page-help/?url=%2Fmanage%2Fblacklist%2F HTTP/1.1" 200 35
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 56649)
----------------------------------------
Traceback (most recent call last):
  File "/home/greg/.virtualenvs/acme/lib/python2.7/site-packages/django/core/servers/basehttp.py", line 284, in run
    self.finish_response()
  File "/home/greg/.virtualenvs/acme/lib/python2.7/site-packages/django/core/servers/basehttp.py", line 324, in finish_response
    self.write(data)
  File "/home/greg/.virtualenvs/acme/lib/python2.7/site-packages/django/core/servers/basehttp.py", line 403, in write
    self.send_headers()
  File "/home/greg/.virtualenvs/acme/lib/python2.7/site-packages/django/core/servers/basehttp.py", line 467, in send_headers
    self.send_preamble()
  File "/home/greg/.virtualenvs/acme/lib/python2.7/site-packages/django/core/servers/basehttp.py", line 385, in send_preamble
    'Date: %s\r\n' % http_date()
  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
Traceback (most recent call last):
  File "/usr/lib/python2.7/SocketServer.py", line 284, in _handle_request_noblock
    self.process_request(request, client_address)
  File "/usr/lib/python2.7/SocketServer.py", line 310, in process_request
    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/greg/.virtualenvs/acme/lib/python2.7/site-packages/django/core/servers/basehttp.py", line 570, in __init__
    BaseHTTPRequestHandler.__init__(self, *args, **kwargs)
  File "/usr/lib/python2.7/SocketServer.py", line 641, in __init__
    self.finish()
  File "/usr/lib/python2.7/SocketServer.py", line 694, 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
[27/Feb/2012 15:44:49] "GET /media/tools/flexigrid/acme/images/pager-first.png HTTP/1.1" 200 321

1 个答案:

答案 0 :(得分:0)

Django Broken pipe in Debug mode

重复

这不是您的代码的问题。它是django dev服务器的工作方式