如何在 django_registration 中延迟发送激活电子邮件?
我正在将 django_paypal 与我创建了自定义后端的 django_registration 设置集成。我似乎无法在发送激活电子邮件的代码中找到它。它位于后端吗?
我想等待并发送激活电子邮件,直到他们完成 Paypal 结帐并且我收到 IPN 通知。
I am integrating django_paypal with my django_registration setup for which I have created a custom backend. I can't seem to find in the code where it sends the activation email. Is this located in the backend?
I want to wait and send the activation email until after they have completed a paypal checkout and I receive the IPN notification.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
RegistrationProfile.objects.create_inactive_user
管理器方法有一个send_email
参数,默认为True
。您只需在创建新用户时设置
send_email=False
即可。The
RegistrationProfile.objects.create_inactive_user
manager method has asend_email
parameter, which defaults toTrue
.You just need to set
send_email=False
when you create a new user.