加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > Python > 正文

python – Django-registration – 一些激活

发布时间:2020-12-16 22:19:03 所属栏目:Python 来源:网络整理
导读:如何强制向用户重新发送激活电子邮件?例如.当他意外删除邮件时,他点击我网站上的链接,django将向他发送新的激活电子邮件. 最佳答案 这样做有一个admin action.从django-registration docs开始: How do I re-send an activation email? Assuming you’re us

如何强制向用户重新发送激活电子邮件?例如.当他意外删除邮件时,他点击我网站上的链接,django将向他发送新的激活电子邮件.

最佳答案
这样做有一个admin action.从django-registration docs开始:

How do I re-send an activation email?

Assuming you’re using the default backend,a custom admin action is provided for this; in the admin for the RegistrationProfile model,simply click the checkbox for the user(s) you’d like to re-send the email for,then select the “Re-send activation emails” action.

没有内置的自动方式(django-registration应该如何确定随机访问者是3天前填写注册表并删除了他的激活邮件的人?).

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读