如何在django注册应用程序中禁用电子邮件激活? [英] How to disable email activation in django-registration app?
本文介绍了如何在django注册应用程序中禁用电子邮件激活?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在django注册应用程序中禁用电子邮件激活?
How to disable email activation in django-registration app?
推荐答案
您可以随时修改这一行到:
new_user = RegistrationProfile.objects.create_inactive_user(username=self.cleaned_data['username'],
password=self.cleaned_data['password1'],
email=self.cleaned_data['email'],
profile_callback=profile_callback,
send_email = False)
或者您可以更改这行到:
def create_inactive_user(self, username, password, email,
send_email=False, profile_callback=None):
这篇关于如何在django注册应用程序中禁用电子邮件激活?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文