0

I want to create username and password when I press on submit button of registration form. Where full name of user is entered by the user. And then username and password should be sent to the user.

Can anyone suggest how to do?

4

1 回答 1

0

您可以在https://docs.djangoproject.com/en/1.5/topics/auth/default/#creating-users找到有关创建用户的文档,并在https://docs.djangoproject 找到有关发送电子邮件的文档。 com/en/1.5/topics/email/

它基本上只是创建一个表单,编写一个视图来呈现它,如果表单有效,则使用该数据创建用户并发送电子邮件。

于 2013-11-01T15:04:29.727 回答