gpt4 book ai didi

Django 运行服务器错误

转载 作者:行者123 更新时间:2023-12-04 12:18:21 25 4
gpt4 key购买 nike

在使用开发服务器时,我得到这个错误:

Validating models...

0 errors found
Django version 1.3 beta 1, using settings 'book_scouts.settings'
Development server is running at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
Traceback (most recent call last):
File "C:\Python26\lib\site-packages\django\core\servers\basehttp.py", line 283
, in run
self.finish_response()
File "C:\Python26\lib\site-packages\django\core\servers\basehttp.py", line 323
, in finish_response
self.write(data)
File "C:\Python26\lib\site-packages\django\core\servers\basehttp.py", line 402
, in write
self.send_headers()
File "C:\Python26\lib\site-packages\django\core\servers\basehttp.py", line 467
, in send_headers
self._write(str(self.headers))
File "C:\Python26\lib\socket.py", line 318, in write
self.flush()
File "C:\Python26\lib\socket.py", line 297, in flush
self._sock.sendall(buffer(data, write_offset, buffer_size))
error: [Errno 10053] An established connection was aborted by the software in yo
ur host machine
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 2426)
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 "C:\Python26\lib\site-packages\django\core\servers\basehttp.py", line 569
, in __init__
BaseHTTPRequestHandler.__init__(self, *args, **kwargs)
File "C:\Python26\lib\SocketServer.py", line 618, in __init__
self.finish()
File "C:\Python26\lib\SocketServer.py", line 661, in finish
self.wfile.flush()
File "C:\Python26\lib\socket.py", line 297, in flush
self._sock.sendall(buffer(data, write_offset, buffer_size))
error: [Errno 10053] An established connection was aborted by the software in yo
ur host machine

我无法将其归结为任何单一来源。这似乎是随机发生的,afaik。它会导致我正在测试的页面加载时间过长,并且页面加载正常。

使用 Django 1.3 Beta 1

更新:我现在正在使用 Opera/Firefox 进行测试,此后问题没有出现。我不敢在 Chrome 中重试。

最佳答案

我得到了同样的东西,并在 django-users google group 上询问。没有人知道出了什么问题。似乎只有当我从浏览器刷新页面时才会得到这个,而不是当我点击页面内的链接时。

另外请注意:我尝试了 Python 2.6 和 2.7 这两个标准版本(来自 python.org 网站)和 ActiveState 版本。同样的事情随机发生。

LE:我在稳定版的 Django 上得到这个。

关于Django 运行服务器错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4717781/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com