邮箱没有收到注册,而且点击注册后,项目疯狂报错

来源:6-10 用户注册-4

慕UI3396178

2018-09-29

图片描述
我给你看下具体的错误代码
Django version 1.9.8, using settings ‘MxOnline2.settings’
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
[29/Sep/2018 23:53:24] “GET /register/ HTTP/1.1” 200 10000
[29/Sep/2018 23:53:24] “GET /static/css/reset.css HTTP/1.1” 200 2722
Traceback (most recent call last):
File “c:\python27\Lib\wsgiref\handlers.py”, line 86, in run
self.finish_response()
File “c:\python27\Lib\wsgiref\handlers.py”, line 128, in finish_response
self.write(data)
File “c:\python27\Lib\wsgiref\handlers.py”, line 212, in write
self.send_headers()
File “c:\python27\Lib\wsgiref\handlers.py”, line 270, in send_headers
self.send_preamble()
File “c:\python27\Lib\wsgiref\handlers.py”, line 194, in send_preamble
’Date: %s\r\n’ % format_date_time(time.time())
File “c:\python27\Lib\socket.py”, line 328, in write
self.flush()
File “c:\python27\Lib\socket.py”, line 307, in flush
self._sock.sendall(view[write_offset:write_offset+buffer_size])
error: [Errno 10053]
[29/Sep/2018 23:53:24] “GET /static/css/reset.css HTTP/1.1” 500 59
Traceback (most recent call last):
File “c:\python27\Lib\SocketServer.py”, line 596, in process_request_thread
self.finish_request(request, client_address)
File “c:\python27\Lib\SocketServer.py”, line 331, in finish_request
self.RequestHandlerClass(request, client_address, self)
File “C:\Users\asus\Envs\mxonline2\lib\site-packages\django\core\servers\basehttp.py”, line 99, in init
super(WSGIRequestHandler, self).init(*args, **kwargs)
File “c:\python27\Lib\SocketServer.py”, line 654, in init
self.finish()
File “c:\python27\Lib\SocketServer.py”, line 713, in finish
self.wfile.close()
File “c:\python27\Lib\socket.py”, line 283, in close
self.flush()
File “c:\python27\Lib\socket.py”, line 307, in flush
self._sock.sendall(view[write_offset:write_offset+buffer_size])
error: [Errno 10053]

Exception happened during processing of request from (‘127.0.0.1’, 64182)

[29/Sep/2018 23:53:24] “GET /static/css/login.css HTTP/1.1” 200 8192
Traceback (most recent call last):
File “c:\python27\Lib\wsgiref\handlers.py”, line 86, in run
self.finish_response()
File “c:\python27\Lib\wsgiref\handlers.py”, line 128, in finish_response
self.write(data)
File “c:\python27\Lib\wsgiref\handlers.py”, line 212, in write
self.send_headers()
File “c:\python27\Lib\wsgiref\handlers.py”, line 270, in send_headers
self.send_preamble()
File “c:\python27\Lib\wsgiref\handlers.py”, line 194, in send_preamble
’Date: %s\r\n’ % format_date_time(time.time())
File “c:\python27\Lib\socket.py”, line 328, in write
self.flush()
File “c:\python27\Lib\socket.py”, line 307, in flush
self._sock.sendall(view[write_offset:write_offset+buffer_size])
error: [Errno 10053]
[29/Sep/2018 23:53:24] “GET /static/css/login.css HTTP/1.1” 500 59
Traceback (most recent call last):
File “c:\python27\Lib\SocketServer.py”, line 596, in process_request_thread

Exception happened during processing of request from (‘127.0.0.1’, 64184)
self.finish_request(request, client_address)
File “c:\python27\Lib\SocketServer.py”, line 331, in finish_request
self.RequestHandlerClass(request, client_address, self)
File “C:\Users\asus\Envs\mxonline2\lib\site-packages\django\core\servers\basehttp.py”, line 99, in init
super(WSGIRequestHandler, self).init(*args, **kwargs)
File “c:\python27\Lib\SocketServer.py”, line 654, in init
self.finish()
File “c:\python27\Lib\SocketServer.py”, line 713, in finish
self.wfile.close()
File “c:\python27\Lib\socket.py”, line 283, in close
self.flush()
File “c:\python27\Lib\socket.py”, line 307, in flush
self._sock.sendall(view[write_offset:write_offset+buffer_size])
error: [Errno 10053]
[29/Sep/2018 23:53:24] “GET /static/images/dig_close.png HTTP/1.1” 200 1211
Traceback (most recent call last):
File “c:\python27\Lib\wsgiref\handlers.py”, line 86, in run

self.finish_response()

File “c:\python27\Lib\wsgiref\handlers.py”, line 128, in finish_response
self.write(data)
File “c:\python27\Lib\wsgiref\handlers.py”, line 212, in write
self.send_headers()
File “c:\python27\Lib\wsgiref\handlers.py”, line 270, in send_headers
self.send_preamble()
File “c:\python27\Lib\wsgiref\handlers.py”, line 194, in send_preamble
’Date: %s\r\n’ % format_date_time(time.time())
File “c:\python27\Lib\socket.py”, line 328, in write
self.flush()
File “c:\python27\Lib\socket.py”, line 307, in flush
self._sock.sendall(view[write_offset:write_offset+buffer_size])
error: [Errno 10053]
[29/Sep/2018 23:53:24] “GET /static/images/dig_close.png HTTP/1.1” 500 59

Exception happened during processing of request from (‘127.0.0.1’, 64189)
Traceback (most recent call last):
File “c:\python27\Lib\SocketServer.py”, line 596, in process_request_thread
self.finish_request(request, client_address)
File “c:\python27\Lib\SocketServer.py”, line 331, in finish_request
self.RequestHandlerClass(request, client_address, self)
File “C:\Users\asus\Envs\mxonline2\lib\site-packages\django\core\servers\basehttp.py”, line 99, in init
super(WSGIRequestHandler, self).init(*args, **kwargs)
File “c:\python27\Lib\SocketServer.py”, line 654, in init
self.finish()
File “c:\python27\Lib\SocketServer.py”, line 713, in finish
self.wfile.close()
File “c:\python27\Lib\socket.py”, line 283, in close
self.flush()
[29/Sep/2018 23:53:24] “GET /captcha/image/2f3f82e5f7a054bf5caa93b9b0bb6cc308fb7011/ HTTP/1.1” 410 0
File “c:\python27\Lib\socket.py”, line 307, in flush
self._sock.sendall(view[write_offset:write_offset+buffer_size])
error: [Errno 10053]
Traceback (most recent call last):
File “c:\python27\Lib\wsgiref\handlers.py”, line 86, in run
self.finish_response()
File “c:\python27\Lib\wsgiref\handlers.py”, line 128, in finish_response
self.write(data)
File “c:\python27\Lib\wsgiref\handlers.py”, line 212, in write
self.send_headers()
File “c:\python27\Lib\wsgiref\handlers.py”, line 270, in send_headers
self.send_preamble()
File “c:\python27\Lib\wsgiref\handlers.py”, line 194, in send_preamble
’Date: %s\r\n’ % format_date_time(time.time())
File “c:\python27\Lib\socket.py”, line 328, in write

self.flush()

File “c:\python27\Lib\socket.py”, line 307, in flush
self._sock.sendall(view[write_offset:write_offset+buffer_size])
error: [Errno 10053]
[29/Sep/2018 23:53:24] “GET /captcha/image/2f3f82e5f7a054bf5caa93b9b0bb6cc308fb7011/ HTTP/1.1” 500 59

Exception happened during processing of request from Traceback (most recent call last):
File “c:\python27\Lib\SocketServer.py”, line 596, in process_request_thread
self.finish_request(request, client_address)
[29/Sep/2018 23:53:24] “GET /static/images/send.pngimages/send.png HTTP/1.1” 404 1703
File “c:\python27\Lib\SocketServer.py”, line 331, in finish_request
(‘127.0.0.1’, 64186)
self.RequestHandlerClass(request, client_address, self)
File “C:\Users\asus\Envs\mxonline2\lib\site-packages\django\core\servers\basehttp.py”, line 99, in init

super(WSGIRequestHandler, self).__init__(*args, **kwargs)

File “c:\python27\Lib\SocketServer.py”, line 654, in init
self.finish()
File “c:\python27\Lib\SocketServer.py”, line 713, in finish
self.wfile.close()
File “c:\python27\Lib\socket.py”, line 283, in close
self.flush()
File “c:\python27\Lib\socket.py”, line 307, in flush
self._sock.sendall(view[write_offset:write_offset+buffer_size])
error: [Errno 10053]
[29/Sep/2018 23:53:24] “GET /static/images/57a801860001c34b12000460.jpg%22 HTTP/1.1” 404 1733
[29/Sep/2018 23:53:24] “GET /captcha/image/e038cb064cb978611de43de87b405d031af64b42/ HTTP/1.1” 200 4799
[29/Sep/2018 23:53:35] “POST /register/ HTTP/1.1” 200 9708
[29/Sep/2018 23:53:35] “GET /static/images/send.pngimages/send.png HTTP/1.1” 404 1703
[29/Sep/2018 23:53:35] “GET /static/images/57a801860001c34b12000460.jpg%22 HTTP/1.1” 404 1733
[29/Sep/2018 23:53:35] “GET /static/images/dig_close.png HTTP/1.1” 200 1211

写回答

1回答

bobby

2018-09-30

这个报错不用管, 应该是django在windows平台下的bug, 在linux上无bug, 而且也不会影响使用,我这里有时候也会报这个错, 到时候上线的时候不会用django自带的runserver 用uwsgi部署不会有这个问题

0
2
bobby
回复
慕UI3396178
你可以在发送邮件的代码出打断点,调试运行看看有没有发送问题,如果发送返回的是1则证明是发送成功的, 如果你还是没有收到邮件,你可以到邮箱的垃圾邮箱里面找找,或者登陆你的发送验证码的邮箱看看有没有被退回的信件,如果有里面会说明具体的原因的
2018-10-04
共2条回复

Python3.6+django+xadmin,打造在线教育平台

【毕设】Python 2.7到3.6 完美适配,Django升级2.0

3677 学习 · 4038 问题

查看课程