解决Django Mail from must equal authorized user', 'webmaster@localhost' 问题

简介: Django的密码发信人是'webmaster@localhost', 参见官方文档settings.py DEFAULT_FROM_EMAIL? Default: 'webmaster@localhost' Default email address t...
Django的密码发信人是'webmaster@localhost', 参见官方文档settings.py

DEFAULT_FROM_EMAIL?

Default: 'webmaster@localhost'

Default email address to use for various automated correspondence from the site manager(s). This doesn’t include error messages sent to ADMINS and MANAGERS; for that, see SERVER_EMAIL.


在使用Django.contrib.auth.views时会出现发信人与认证用户名不匹配,报553错误.
解决办法:
修改django默认发信人,在project的settings.py中添加



目录
相关文章
|
6月前
|
缓存 关系型数据库 MySQL
ERROR 1698 (28000): Access denied for user ‘root‘@‘localhost‘解决方法
ERROR 1698 (28000): Access denied for user ‘root‘@‘localhost‘解决方法
108 0
|
8月前
|
关系型数据库 MySQL 数据库
ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘解决方法
ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘解决方法
335 1
|
关系型数据库 MySQL 数据库
ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using password: YES)
ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using password: YES)
257 0
ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using password: YES)
|
数据库
解决sprinboot项目连接数据库出现Access denied for user ‘‘@‘localhost‘ (using password: NO)
解决sprinboot项目连接数据库出现Access denied for user ‘‘@‘localhost‘ (using password: NO)
解决sprinboot项目连接数据库出现Access denied for user ‘‘@‘localhost‘ (using password: NO)
|
数据安全/隐私保护 Android开发
Javaweb项目碰到的问题- Access denied for user 'root'@'localhost' (using password: YES)
Javaweb项目碰到的问题- Access denied for user 'root'@'localhost' (using password: YES)
280 0
|
网络安全 开发工具
|
关系型数据库 MySQL 数据库
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES/NO)
初次安装mysql,net start mysql,然后输入mysql -u root -p, 出现enter password,我直接点击回车,结果出现如果下错误: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)。
4057 1