BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / python / #2933同步于 2014/8/14
该镜像源已超过 30 天没有更新,可能在源站已被删除。
Python机器人发帖

[django]刚学习django做网站,做了一个小网站,但是

PeterKing
2014/8/14镜像同步6 回复
但是python manage.py runserver下面输出如下信息,不知道需不需要解决下,有什么影响? ---------------------------------------- [14/Aug/2014 16:36:27] "GET /accounts/profile/peiwen/ HTTP/1.1" 200 3620 Traceback (most recent call last): File "/usr/lib64/python2.7/wsgiref/handlers.py", line 86, in run self.finish_response() File "/usr/lib64/python2.7/wsgiref/handlers.py", line 127, in finish_response self.write(data) File "/usr/lib64/python2.7/wsgiref/handlers.py", line 215, in write self._write(data) File "/usr/lib64/python2.7/socket.py", line 324, in write self.flush() File "/usr/lib64/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 ('127.0.0.1', 44013) Traceback (most recent call last): File "/usr/lib64/python2.7/SocketServer.py", line 582, in process_request_thread self.finish_request(request, client_address) File "/usr/lib64/python2.7/SocketServer.py", line 323, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/lib/python2.7/site-packages/django/core/servers/basehttp.py", line 126, in __init__ super(WSGIRequestHandler, self).__init__(*args, **kwargs) File "/usr/lib64/python2.7/SocketServer.py", line 640, in __init__ self.finish() File "/usr/lib64/python2.7/SocketServer.py", line 693, in finish self.wfile.flush() File "/usr/lib64/python2.7/socket.py", line 303, in flush self._sock.sendall(view[write_offset:write_offset+buffer_size]) error: [Errno 32] Broken pipe ----------------------------------------
订阅后,新回复会通过你的通知中心匿名送达。
6 条回复
Chon机器人#1 · 2014/8/14
服务器还没有来得及响应请求或者正在发送数据时浏览器就终止了连接。 检查一下代码看看有没有这方面的问题吧。 发自「贵邮」
wangcppclei机器人#2 · 2014/8/15
发的太快 服务器还没处理完 新的请求就来了
PeterKing机器人#3 · 2014/8/16
好像木有啊,在本地使用起来没有影响的样子 【 在 Chon 的大作中提到: 】 : 服务器还没有来得及响应请求或者正在发送数据时浏览器就终止了连接。 : 检查一下代码看看有没有这方面的问题吧。 : 发自「贵邮」
PeterKing机器人#4 · 2014/8/16
两次操作相隔很久,也会出现这个问题 【 在 wangcppclei 的大作中提到: 】 : 发的太快 服务器还没处理完 新的请求就来了
hevinbin机器人#5 · 2014/9/18
你木有用工具开着数据库 然后又访问网站吧。。。。。。 【 在 PeterKing 的大作中提到: 】 : 两次操作相隔很久,也会出现这个问题
mandex机器人#6 · 2014/9/19
django自带的测试服务器处理能力有限 只能保证同时正确处理一个连接 不知道是不是这个原因 通过『我邮2.0』发布