内容简介:翻译自:https://stackoverflow.com/questions/3731821/how-to-test-django-registration-app-process-while-in-development-server-no-mail
附带的开发服务器很棒.但是,我安装了django-authopenid(将django-registration app与openID相结合),遵循3步流程:用户注册,app发送带链接的确认电子邮件,用户点击链接确认注册.
由于django开发服务器没有邮件服务器,如何测试该进程的此确认电子邮件部分?我按照一个想法将电子邮件的内容打印到终端,但我不能按照链接.有什么建议?
有一个调试邮件服务器可用于此目的.
只需执行此命令,您就可以在端口1025上运行邮件服务器
python -m smtpd -n -c DebuggingServer localhost:1025
之后你需要在Django中更改你的MAIL_HOST设置,你可以在本地测试你的电子邮件:)
翻译自:https://stackoverflow.com/questions/3731821/how-to-test-django-registration-app-process-while-in-development-server-no-mail
以上所述就是小编给大家介绍的《如何在开发服务器上测试django注册应用程序进程(无邮件)》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!
猜你喜欢:- 进程:进程生命周期
- Python 知识巩固:通过主进程带起多个子进程实现多进程执行逻辑
- Python 中子进程与父进程
- 什么是僵尸进程,如何找到并杀掉僵尸进程?
- Android里应用程序,应用程序窗口和视图对象之间的关系
- 使用 Bluemix、Watson Discovery 和 Cloudant 构建移动应用程序来分析其他应用程序
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Distributed Algorithms
Wan Fokkink / The MIT Press / 2013-12-6 / USD 40.00
This book offers students and researchers a guide to distributed algorithms that emphasizes examples and exercises rather than the intricacies of mathematical models. It avoids mathematical argumentat......一起来看看 《Distributed Algorithms》 这本书的介绍吧!