ConnectionRefusedError at /accounts/register/
当用户输入电子邮件进行密码重置时,会出现与服务器故障错误有关的连接失败错误。
赛跑:
文件"C:\\\\\\\\ProgramData\\\\\\\\Anaconda3\\\\\\\\lib\\\\\\\\site-packages\\\\\\\\django-2.2b1-py3.7.egg\\\\\\\\django\\ \\\\\\core\\\\\\\\handlers\\\\\\\\exception.py" 在内部
34. 响应 = get_response(请求)
文件"C:\\\\\\\\ProgramData\\\\\\\\Anaconda3\\\\\\\\lib\\\\\\\\site-packages\\\\\\\\django-2.2b1-py3.7.egg\\\\\\\\django\\ \\\\\\core\\\\\\\\handlers\\\\\\\\base.py" 在 _get_response
115. response = self.process_exception_by_middleware(e, request)
文件"C:\\\\\\\\ProgramData\\\\\\\\Anaconda3\\\\\\\\lib\\\\\\\\site-packages\\\\\\\\django-2.2b1-py3.7.egg\\\\\\\\django\\ \\\\\\core\\\\\\\\handlers\\\\\\\\base.py" 在 _get_response
113. response = Wrapped_callback(request, *callback_args, **callback_kwargs)
文件"C:\\\\\\\\ProgramData\\\\\\\\Anaconda3\\\\\\\\lib\\\\\\\\site-packages\\\\\\\\django-2.2b1-py3.7.egg\\\\\\\\django\\ \\\\\\views\\\\\\\\generic\\\\\\\\base.py" 在视图中
71. return self.dispatch(request, *args, **kwargs)
文件"C:\\\\\\\\ProgramData\\\\\\\\Anaconda3\\\\\\\\lib\\\\\\\\site-packages\\\\\\\\django-2.2b1-py3.7.egg\\\\\\\\django\\ _wrapper 中的 \\\\\\utils\\\\\\\\decorators.py"
45. return bound_method(*args, **kwargs)
文件"C:\\\\\\\\ProgramData\\\\\\\\Anaconda3\\\\\\\\lib\\\\\\\\site-packages\\\\\\\\django-2.2b1-py3.7.egg\\\\\\\\django\\ \\\\\\views\\\\\\\\decorators\\\\\\\\debug.py" insensitive_post_parameters_wrapper
76. 返回视图(请求,*args,**kwargs)
文件 "C:\\\\\\\\ProgramData\\\\\\\\Anaconda3\\\\\\\\lib\\\\\\\\site-packages\\\\
egistration\\\\\\\\views.py" 在调度中
53. return super(RegistrationView, self).dispatch(request, *args, **kwargs)
文件"C:\\\\\\\\ProgramData\\\\\\\\Anaconda3\\\\\\\\lib\\\\\\\\site-packages\\\\\\\\django-2.2b1-py3.7.egg\\\\\\\\django\\ \\\\views\\\\\\\\generic\\\\\\\\base.py" 在调度中
97. 返回处理程序(请求,*args,**kwargs)
文件"C:\\\\\\\\ProgramData\\\\\\\\Anaconda3\\\\\\\\lib\\\\\\\\site-packages\\\\\\\\django-2.2b1-py3.7.egg\\\\\\\\django\\ \\\\\\views\\\\\\\\generic\\\\\\\\edit.py" 在帖子中
142. return self.form_valid(form)
文件 "C:\\\\\\\\ProgramData\\\\\\\\Anaconda3\\\\\\\\lib\\\\\\\\site-packages\\\\
注册\\\\\\\\views.py" in form_valid
56. new_user = self.register(form)
文件 "C:\\\\\\\\ProgramData\\\\\\\\Anaconda3\\\\\\\\lib\\\\\\\\site-packages\\\\
egistration\\\\\\\\backends\\\\\\\\default\\\\\\\\views.py" 在寄存器中
100.请求=self.request,
文件 "C:\\\\\\\\ProgramData\\\\\\\\Anaconda3\\\\\\\\lib\\\\\\\\site-packages\\\\
注册\\\\\\\\models.py" 在 create_inactive_user
193. lambda:registration_profile.send_activation_email(
文件"C:\\\\\\\\ProgramData\\\\\\\\Anaconda3\\\\\\\\lib\\\\\\\\site-packages\\\\\\\\django-2.2b1-py3.7.egg\\\\\\\\django\\ \\\\\\db\\\\\\\\transaction.py" 在退出
284.connection.set_autocommit(True)
文件"C:\\\\\\\\ProgramData\\\\\\\\Anaconda3\\\\\\\\lib\\\\\\\\site-packages\\\\\\\\django-2.2b1-py3.7.egg\\\\\\\\django\\ \\\\\\db\\\\\\\\backends\\\\\\\\base\\\\\\\\base.py" 在 set_autocommit
409. self.run_and_clear_commit_hooks()
文件"C:\\\\\\\\ProgramData\\\\\\\\Anaconda3\\\\\\\\lib\\\\\\\\site-packages\\\\\\\\django-2.2b1-py3.7.egg\\\\\\\\django\\ \\\\\\db\\\\\\\\backends\\\\\\\\base\\\\\\\\base.py" 在 run_and_clear_commit_hooks
624. func()
文件 "C:\\\\\\\\ProgramData\\\\\\\\Anaconda3\\\\\\\\lib\\\\\\\\site-packages\\\\
注册\\\\\\\\models.py" 在
194. 网站,请求)
文件 "C:\\\\\\\\ProgramData\\\\\\\\Anaconda3\\\\\\\\lib\\\\\\\\site-packages\\\\
在 send_activation_email 中注册\\\\\\\\models.py"
451. email_message.send()
文件"C:\\\\\\\\ProgramData\\\\\\\\Anaconda3\\\\\\\\lib\\\\\\\\site-packages\\\\\\\\django-2.2b1-py3.7.egg\\\\\\\\django\\ \\\\\\core\\\\\\\\mail\\\\\\\\message.py" 在发送
291. return self.get_connection(fail_silently).send_messages([self])
文件"C:\\\\\\\\ProgramData\\\\\\\\Anaconda3\\\\\\\\lib\\\\\\\\site-packages\\\\\\\\django-2.2b1-py3.7.egg\\\\\\\\django\\ \\\\\\core\\\\\\\\mail\\\\\\\\backends\\\\\\\\smtp.py" 在 send_messages
103. new_conn_created = self.open()
文件"C:\\\\\\\\ProgramData\\\\\\\\Anaconda3\\\\\\\\lib\\\\\\\\site-packages\\\\\\\\django-2.2b1-py3.7.egg\\\\\\\\django\\ \\\\\\core\\\\\\\\mail\\\\\\\\backends\\\\\\\\smtp.py" 打开
63. self.connection = self.connection_class(self.host, self.port, **connection_params)
文件 "C:\\\\\\\\ProgramData\\\\\\\\Anaconda3\\\\\\\\lib\\\\\\\\smtplib.py" 在 init
251. (code, msg) = self.connect(host, port)
文件 "C:\\\\\\\\ProgramData\\\\\\\\Anaconda3\\\\\\\\lib\\\\\\\\smtplib.py" 在连接
336. self.sock = self._get_socket(主机,端口,self.timeout)
文件 "C:\\\\\\\\ProgramData\\\\\\\\Anaconda3\\\\\\\\lib\\\\\\\\smtplib.py" 在 _get_socket
307. self.source_address)
文件 "C:\\\\\\\\ProgramData\\\\\\\\Anaconda3\\\\\\\\lib\\\\\\\\socket.py" 在 create_connection
727.引发错误
文件 "C:\\\\\\\\ProgramData\\\\\\\\Anaconda3\\\\\\\\lib\\\\\\\\socket.py" 在 create_connection
716. sock.connect(sa)
异常类型:/accounts/register/ 处的 ConnectionRefusedError
异常值:[WinError 10061] 由于目标机器主动拒绝,无法建立连接
ConnectionRefusedError at /accounts/signup/ [WinError 10061] 无法建立连接,因为目标机器主动拒绝了它
#解决这个错误 ConnectionRefusedError at /accounts/signup/
[WinError 10061] 由于目标机器主动拒绝,无法建立连接
1 2 3 4 | #add this to line it works EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' ACCOUNT_EMAIL_VERIFICATION ="none" |
您尝试连接的端口错误或机器的防火墙拒绝了您的请求。