Django 2.0.6开发服务器在外部连接上崩溃

时间:2018-06-11 14:44:48

标签: django

我在Django 2.0.6的开发服务器上遇到了一些问题。

它一直运行,直到我尝试从另一个客户端连接到它,然后它立即崩溃。 DEBUG = True在settings.py中设置

我正在使用Python 3.5.3 (default, Jan 19 2017, 14:11:04)

python3 manage.py runserver 0.0.0.0:8000
Performing system checks...

System check identified no issues (0 silenced).
June 11, 2018 - 14:32:19
Django version 2.0.6, using settings 'bidm_django.settings'
Starting development server at http://0.0.0.0:8000/
Quit the server with CONTROL-C.
----------------------------------------
Exception happened during processing of request from ('10.29.0.178', 61797)
Traceback (most recent call last):
  File "/usr/lib/python3.5/socketserver.py", line 625, in process_request_thread
    self.finish_request(request, client_address)
  File "/usr/lib/python3.5/socketserver.py", line 354, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python3.5/socketserver.py", line 681, in __init__
    self.handle()
  File "/home/srojek/venv/lib/python3.5/site-packages/django/core/servers/basehttp.py", line 139, in handle
    self.raw_requestline = self.rfile.readline(65537)
  File "/usr/lib/python3.5/socket.py", line 576, in readinto
    return self._sock.recv_into(b)
ConnectionResetError: [Errno 104] Connection reset by peer
----------------------------------------

pip冻结

Django==2.0.6
pkg-resources==0.0.0
pytz==2018.4

虽然它在使用pyCharm IDE的Windows机器上本地工作正常但它在linux机器上崩溃。

0 个答案:

没有答案