Django密码重置逻辑

时间:2020-03-11 17:14:08

标签: django django-settings

SMTP error I don't know about it please explain and how to solve this problem

当我尝试为自己的网站的密码重置功能修改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 = os.environ.get('EMAIL_USER')
EMAIL_HOST_PASSWORD = os.environ.get('EMAIL_PASS')

0 个答案:

没有答案