OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

TimeoutError at /studentupdtpwd

  • Thread starter Thread starter Bhavana Hema Sree
  • Start date Start date
B

Bhavana Hema Sree

Guest
[WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond Request Method: POST Request URL: http://127.0.0.1:8000/studentupdtpwd Django Version: 5.0 Exception Type: TimeoutError

Code:
settings.py:
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_PORT = 587
EMAIL_USE_TLS = True
EMAIL_HOST_USER = '[email protected]'  
EMAIL_HOST_PASSWORD = 'mypassword' 
EMAIL_TIMEOUT = 860  
```


While sending email from an Django application using send_mail or EmailMessage sometimes it is working fine but sometimes getting TIME OUT ERROR for same logic.I also created another app and updated settings.py new generated password.
<p>[WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
Request Method: POST
Request URL: <a href="http://127.0.0.1:8000/studentupdtpwd" rel="nofollow noreferrer">http://127.0.0.1:8000/studentupdtpwd</a>
Django Version: 5.0
Exception Type: TimeoutError</p>
<pre><code>settings.py:
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_PORT = 587
EMAIL_USE_TLS = True
EMAIL_HOST_USER = '[email protected]'
EMAIL_HOST_PASSWORD = 'mypassword'
EMAIL_TIMEOUT = 860
```


While sending email from an Django application using send_mail or EmailMessage sometimes it is working fine but sometimes getting TIME OUT ERROR for same logic.I also created another app and updated settings.py new generated password.
</code></pre>
Continue reading...
 

Latest posts

B
Replies
0
Views
1
Blundering Ecologist
B
Top