📌  相关文章
📜  django EMAIL_BACKEND 控制台 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:17.433000             🧑  作者: Mango

代码示例1
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'

'''Console backend¶
Instead of sending out real emails the console backend just writes the emails that would be sent to the standard output. By default, the console backend writes to stdout. You can use a different stream-like object by providing the stream keyword argument when constructing the connection.

To specify this backend, put the following in your settings:'''