django開發版WEB服務器 不響應或Socket報錯

django開發版WEB服務器 不響應或Socket報錯
<span style="font-size:14px;">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]</span>


解決方案:指定IP地址運行django開發版WEB服務器,不使用127.0.0.1, 如: python manage.py runserver 192.168.1.2:80 


python測試django系統出現 Error: [Errno 10013]
解決方案:端口被佔用,關閉端口
發佈了50 篇原創文章 · 獲贊 48 · 訪問量 45萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章