Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在将 django_paypal 与我创建了自定义后端的 django_registration 设置集成。我似乎在发送激活电子邮件的代码中找不到。这是位于后端吗?
我想等待并发送激活电子邮件,直到他们完成贝宝结帐并且我收到 IPN 通知。
RegistrationProfile.objects.create_inactive_usermanager 方法有一个参数,send_email默认为True.
RegistrationProfile.objects.create_inactive_user
send_email
True
您只需要send_email=False在创建新用户时进行设置。
send_email=False
new_user = RegistrationProfile.objects.create_inactive_user(username, email, password, site, send_email=False)