IE9 + django开发版WEB服务器 不响应或Socket报错
IE9 + django开发版WEB服务器 不响应或Socket报错
===================================================
Exception happened during processing of request from ('127.0.0.1', 49710)
Traceback (most recent call last):
File "C:\Python26\Lib\SocketServer.py", line 283, in _handle_request_noblock
self.process_request(request, client_address)
File "C:\Python26\Lib\SocketServer.py", line 309, in process_request
self.finish_request(request, client_address)
File "C:\Python26\Lib\SocketServer.py", line 322, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "D:\Studio\ilo\lib\site-packages\django\core\servers\basehttp.py", line 5
70, in __init__
BaseHTTPRequestHandler.__init__(self, *args, **kwargs)
File "C:\Python26\Lib\SocketServer.py", line 617, in __init__
self.handle()
File "D:\Studio\ilo\lib\site-packages\django\core\servers\basehttp.py", line 6
10, in handle
self.raw_requestline = self.rfile.readline()
File "C:\Python26\Lib\socket.py", line 444, in readline
data = self._sock.recv(self._rbufsize)
error: [Errno 10054]
Traceback (most recent call last):
File "C:\Python26\Lib\SocketServer.py", line 283, in _handle_request_noblock
self.process_request(request, client_address)
File "C:\Python26\Lib\SocketServer.py", line 309, in process_request
self.finish_request(request, client_address)
File "C:\Python26\Lib\SocketServer.py", line 322, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "D:\Studio\ilo\lib\site-packages\django\core\servers\basehttp.py", line 5
70, in __init__
BaseHTTPRequestHandler.__init__(self, *args, **kwargs)
File "C:\Python26\Lib\SocketServer.py", line 617, in __init__
self.handle()
File "D:\Studio\ilo\lib\site-packages\django\core\servers\basehttp.py", line 6
10, in handle
self.raw_requestline = self.rfile.readline()
File "C:\Python26\Lib\socket.py", line 444, in readline
data = self._sock.recv(self._rbufsize)
error: [Errno 10054]
解决方案
--------------------
指定IP地址运行django开发版WEB服务器,不使用127.0.0.1, 如: python manage.py runserver 192.168.1.2:80