Django runerver error

When using the development server, I get this error:

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

I can not bind it to one source. It seems to be happening by chance, afayk. This leads to the fact that the page I'm testing takes a very long time to load, and the page just loads normally.

Using Django 1.3 Beta 1

The UPDATE . I am using Opera / Firefox for testing now, and no problem has occurred since then. I'm afraid to try again in Chrome.

+3
source share
1 answer

I got the same and asked about the google group django-users. No one knew what happened. It seems that only I get this when I refresh the page from the browser, and not when I click the links on the page.

-: Python 2.6 2.7 ( python.org), ActiveState. .

LE: Django.

0

Source: https://habr.com/ru/post/1785989/


All Articles