我试图以示例用户的身份注册已部署的Django应用程序,但出现了服务器错误(500)
这是错误日志
raise error_class(parsed_response, operation_name)
botocore.errorfactory.MessageRejected: An error occurred (MessageRejected) when calling the SendRawEmail operation: Email address is not verified. The following identities failed the check in region US-EAST-1: webmaster@localhost
2020-07-27 12:32:52,406 [ERROR] /home/app_admin/venv_private_diary/lib64/python3.7/site-packages/django/core/servers/basehttp.py(Line:154) "POST /accounts/login/ HTTP/1.0" 500 27
在错误消息中“webmaster@localhost“表示Django应用程序发送默认电子邮件地址,因此我已将此语句添加到settings.py
DEFAULT_FROM_EMAIL = 'my@emailaddress.com'
但还是出现了同样的错误消息。 我应该在哪里检查
我也有同样的错误,这是一个简单的错误:我没有在settings.py中正确设置所有django ses变量,特别是那些定义要从中发送的AWS区域的变量:
这是取自the django-SES github page
默认情况下,电子邮件将从AWS地区
US-East-1
发送,如您的错误中所述,因此我猜这是您的问题相关问题 更多 >
编程相关推荐