请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

老师我的pycharm一直提示这个错误,您能给我看看吗?

"C:\Program Files\JetBrains\PyCharm 2018.1\bin\runnerw.exe" C:\Users\wr.z\Envs\testenv\Scripts\python.exe D:/Django_project/MxOnline/manage.py runserver 8000

Performing system checks...


System check identified no issues (0 silenced).

July 27, 2018 - 12:48:26

Django version 1.11.8, using settings 'MxOnline.settings'

Starting development server at http://127.0.0.1:8000/

Quit the server with CTRL-BREAK.

[27/Jul/2018 12:48:38] "GET / HTTP/1.1" 200 37060

[27/Jul/2018 12:48:38] "GET /static/css/reset.css HTTP/1.1" 200 2808

[27/Jul/2018 12:48:38] "GET /static/js/plugins/jquery.scrollLoading.js HTTP/1.1" 200 770

[27/Jul/2018 12:48:38] "GET /static/images/top_down.png HTTP/1.1" 200 1030

Not Found: /uploads/avatar/default_big.png

[27/Jul/2018 12:48:38] "GET /uploads/avatar/default_big.png HTTP/1.1" 404 2780

[27/Jul/2018 12:48:38] "GET /static/js/plugins/laydate/need/laydate.css HTTP/1.1" 200 6028

Traceback (most recent call last):

  File "c:\users\wr.z\appdata\local\programs\python\python36\Lib\wsgiref\handlers.py", line 138, in run

    self.finish_response()

  File "c:\users\wr.z\appdata\local\programs\python\python36\Lib\wsgiref\handlers.py", line 180, in finish_response

    self.write(data)

  File "c:\users\wr.z\appdata\local\programs\python\python36\Lib\wsgiref\handlers.py", line 274, in write

    self.send_headers()

  File "c:\users\wr.z\appdata\local\programs\python\python36\Lib\wsgiref\handlers.py", line 332, in send_headers

    self.send_preamble()

  File "c:\users\wr.z\appdata\local\programs\python\python36\Lib\wsgiref\handlers.py", line 255, in send_preamble

    ('Date: %s\r\n' % format_date_time(time.time())).encode('iso-8859-1')

  File "c:\users\wr.z\appdata\local\programs\python\python36\Lib\wsgiref\handlers.py", line 453, in _write

    result = self.stdout.write(data)

  File "c:\users\wr.z\appdata\local\programs\python\python36\Lib\socketserver.py", line 775, in write

    self._sock.sendall(b)

ConnectionAbortedError: [WinError 10053] 您的主机中的软件中止了一个已建立的连接。

[27/Jul/2018 12:48:38] "GET /static/js/plugins/laydate/need/laydate.css HTTP/1.1" 500 59

----------------------------------------

Exception happened during processing of request from ('127.0.0.1', 59480)

Traceback (most recent call last):

  File "c:\users\wr.z\appdata\local\programs\python\python36\Lib\wsgiref\handlers.py", line 138, in run

    self.finish_response()

  File "c:\users\wr.z\appdata\local\programs\python\python36\Lib\wsgiref\handlers.py", line 180, in finish_response

    self.write(data)

  File "c:\users\wr.z\appdata\local\programs\python\python36\Lib\wsgiref\handlers.py", line 274, in write

    self.send_headers()

  File "c:\users\wr.z\appdata\local\programs\python\python36\Lib\wsgiref\handlers.py", line 332, in send_headers

    self.send_preamble()

  File "c:\users\wr.z\appdata\local\programs\python\python36\Lib\wsgiref\handlers.py", line 255, in send_preamble

    ('Date: %s\r\n' % format_date_time(time.time())).encode('iso-8859-1')

  File "c:\users\wr.z\appdata\local\programs\python\python36\Lib\wsgiref\handlers.py", line 453, in _write

    result = self.stdout.write(data)

  File "c:\users\wr.z\appdata\local\programs\python\python36\Lib\socketserver.py", line 775, in write

    self._sock.sendall(b)

ConnectionAbortedError: [WinError 10053] 您的主机中的软件中止了一个已建立的连接。


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "c:\users\wr.z\appdata\local\programs\python\python36\Lib\wsgiref\handlers.py", line 141, in run

    self.handle_error()

  File "C:\Users\wr.z\Envs\testenv\lib\site-packages\django\core\servers\basehttp.py", line 88, in handle_error

    super(ServerHandler, self).handle_error()

  File "c:\users\wr.z\appdata\local\programs\python\python36\Lib\wsgiref\handlers.py", line 368, in handle_error

    self.finish_response()

  File "c:\users\wr.z\appdata\local\programs\python\python36\Lib\wsgiref\handlers.py", line 180, in finish_response

    self.write(data)

  File "c:\users\wr.z\appdata\local\programs\python\python36\Lib\wsgiref\handlers.py", line 274, in write

    self.send_headers()

  File "c:\users\wr.z\appdata\local\programs\python\python36\Lib\wsgiref\handlers.py", line 331, in send_headers

    if not self.origin_server or self.client_is_modern():

  File "c:\users\wr.z\appdata\local\programs\python\python36\Lib\wsgiref\handlers.py", line 344, in client_is_modern

    return self.environ['SERVER_PROTOCOL'].upper() != 'HTTP/0.9'

TypeError: 'NoneType' object is not subscriptable


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "c:\users\wr.z\appdata\local\programs\python\python36\Lib\socketserver.py", line 639, in process_request_thread

    self.finish_request(request, client_address)

  File "c:\users\wr.z\appdata\local\programs\python\python36\Lib\socketserver.py", line 361, in finish_request

    self.RequestHandlerClass(request, client_address, self)

  File "c:\users\wr.z\appdata\local\programs\python\python36\Lib\socketserver.py", line 696, in __init__

    self.handle()

  File "C:\Users\wr.z\Envs\testenv\lib\site-packages\django\core\servers\basehttp.py", line 155, in handle

    handler.run(self.server.get_app())

  File "c:\users\wr.z\appdata\local\programs\python\python36\Lib\wsgiref\handlers.py", line 144, in run

    self.close()

  File "c:\users\wr.z\appdata\local\programs\python\python36\Lib\wsgiref\simple_server.py", line 35, in close

    self.status.split(' ',1)[0], self.bytes_sent

AttributeError: 'NoneType' object has no attribute 'split'

----------------------------------------

[27/Jul/2018 12:48:38] "GET /static/images/57aa86a0000145c512000460.jpg HTTP/1.1" 200 8192

Traceback (most recent call last):

  File "c:\users\wr.z\appdata\local\programs\python\python36\Lib\wsgiref\handlers.py", line 138, in run

    self.finish_response()

  File "c:\users\wr.z\appdata\local\programs\python\python36\Lib\wsgiref\handlers.py", line 180, in finish_response

    self.write(data)

  File "c:\users\wr.z\appdata\local\programs\python\python36\Lib\wsgiref\handlers.py", line 274, in write

    self.send_headers()

  File "c:\users\wr.z\appdata\local\programs\python\python36\Lib\wsgiref\handlers.py", line 332, in send_headers

    self.send_preamble()

  File "c:\users\wr.z\appdata\local\programs\python\python36\Lib\wsgiref\handlers.py", line 255, in send_preamble

    ('Date: %s\r\n' % format_date_time(time.time())).encode('iso-8859-1')

  File "c:\users\wr.z\appdata\local\programs\python\python36\Lib\wsgiref\handlers.py", line 453, in _write

    result = self.stdout.write(data)

  File "c:\users\wr.z\appdata\local\programs\python\python36\Lib\socketserver.py", line 775, in write

    self._sock.sendall(b)

ConnectionAbortedError: [WinError 10053] 您的主机中的软件中止了一个已建立的连接。

[27/Jul/2018 12:48:38] "GET /static/images/57aa86a0000145c512000460.jpg HTTP/1.1" 500 59

----------------------------------------

Exception happened during processing of request from ('127.0.0.1', 59481)

Traceback (most recent call last):

  File "c:\users\wr.z\appdata\local\programs\python\python36\Lib\wsgiref\handlers.py", line 138, in run

    self.finish_response()

  File "c:\users\wr.z\appdata\local\programs\python\python36\Lib\wsgiref\handlers.py", line 180, in finish_response

    self.write(data)

  File "c:\users\wr.z\appdata\local\programs\python\python36\Lib\wsgiref\handlers.py", line 274, in write

    self.send_headers()

  File "c:\users\wr.z\appdata\local\programs\python\python36\Lib\wsgiref\handlers.py", line 332, in send_headers

    self.send_preamble()

  File "c:\users\wr.z\appdata\local\programs\python\python36\Lib\wsgiref\handlers.py", line 255, in send_preamble

    ('Date: %s\r\n' % format_date_time(time.time())).encode('iso-8859-1')

  File "c:\users\wr.z\appdata\local\programs\python\python36\Lib\wsgiref\handlers.py", line 453, in _write

    result = self.stdout.write(data)

  File "c:\users\wr.z\appdata\local\programs\python\python36\Lib\socketserver.py", line 775, in write

    self._sock.sendall(b)

ConnectionAbortedError: [WinError 10053] 您的主机中的软件中止了一个已建立的连接。


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "c:\users\wr.z\appdata\local\programs\python\python36\Lib\wsgiref\handlers.py", line 141, in run

    self.handle_error()

  File "C:\Users\wr.z\Envs\testenv\lib\site-packages\django\core\servers\basehttp.py", line 88, in handle_error

    super(ServerHandler, self).handle_error()

  File "c:\users\wr.z\appdata\local\programs\python\python36\Lib\wsgiref\handlers.py", line 368, in handle_error

    self.finish_response()

  File "c:\users\wr.z\appdata\local\programs\python\python36\Lib\wsgiref\handlers.py", line 180, in finish_response

    self.write(data)

  File "c:\users\wr.z\appdata\local\programs\python\python36\Lib\wsgiref\handlers.py", line 274, in write

    self.send_headers()

  File "c:\users\wr.z\appdata\local\programs\python\python36\Lib\wsgiref\handlers.py", line 331, in send_headers

    if not self.origin_server or self.client_is_modern():

  File "c:\users\wr.z\appdata\local\programs\python\python36\Lib\wsgiref\handlers.py", line 344, in client_is_modern

    return self.environ['SERVER_PROTOCOL'].upper() != 'HTTP/0.9'

TypeError: 'NoneType' object is not subscriptable


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "c:\users\wr.z\appdata\local\programs\python\python36\Lib\socketserver.py", line 639, in process_request_thread

    self.finish_request(request, client_address)

  File "c:\users\wr.z\appdata\local\programs\python\python36\Lib\socketserver.py", line 361, in finish_request

    self.RequestHandlerClass(request, client_address, self)

  File "c:\users\wr.z\appdata\local\programs\python\python36\Lib\socketserver.py", line 696, in __init__

    self.handle()

  File "C:\Users\wr.z\Envs\testenv\lib\site-packages\django\core\servers\basehttp.py", line 155, in handle

    handler.run(self.server.get_app())

  File "c:\users\wr.z\appdata\local\programs\python\python36\Lib\wsgiref\handlers.py", line 144, in run

    self.close()

  File "c:\users\wr.z\appdata\local\programs\python\python36\Lib\wsgiref\simple_server.py", line 35, in close

    self.status.split(' ',1)[0], self.bytes_sent

AttributeError: 'NoneType' object has no attribute 'split'

----------------------------------------

[27/Jul/2018 12:49:00] "GET /login/ HTTP/1.1" 200 5004

[27/Jul/2018 12:49:00] "GET /static/css/login.css HTTP/1.1" 304 0

[27/Jul/2018 12:49:03] "GET /forget/ HTTP/1.1" 200 5370

[27/Jul/2018 12:49:05] "GET /captcha/image/a233214e484ca7b5d1ac00139a10981d64046030/ HTTP/1.1" 200 4124


正在回答 回答被采纳积分+3

1回答

bobby 2018-07-30 09:53:30

这个应该是pycharm的问题 和windows环境有关 在linux下没有这个问题 你可以不用管,我这里偶尔也会出现

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号