Card image cap

Fixed website

I fixed the settings.py.

Website had a 500 error, when I signup and reset password.

So I searched for the word "ConnectionRefusedError: [Errno 111] Connection refused".

Then I found the fix code.

The cause was a spelling mistake.

So I have to check many things.

Correct settings.py

DEFAULT_FROM_EMAIL = "your@email"
SERVER_EMAIL = "your@email"
EMAIL_HOST = "SMTP Endpoint"
EMAIL_HOST_USER = "SMTP Username"
EMAIL_HOST_PASSWORD = "SMPT Password"
EMAIL_PORT = 587
EMAIL_USE_TLS = True

Wrong settings.py

DEFAULT_FROM_EMAIL = "your@email"
SERVER_EMAIL = "your@email"
EAMIL_HOST = "SMTP Endpoint"  # wrong
EMAI_HOST_USER = "SMTP Username"  # wrong
EMAIL_HOST_PASSWORD = "SMPT Password"
EMAIL_PORT = 587
EMAIL_USE_TLS = True
Category : Django, Posted : Jan. 10, 2024, 10:53 p.m.,
Update : Jan. 10, 2024, 10:53 p.m., By : koki,

Comments

Hello koki. congratulations!

yourin Jan. 10, 2024, 11:13 p.m.

Profile

Hello, my name is Koki. I am currently learning the web framework Django and English. In my free time, I enjoy hiking, cycling, and visiting shrines and temples. At work, I make software for programmable logic controllers (PLCs), I work especially with OMRON and Mitsubishi PLCs. Please feel free to contact me for any inquiries, job requests, or just to chat. We look forward to hearing from you via email!

Category

10 Latest articles