Perhaps what you want to do is generate a password reset email for them. We know that you've set their email (or you couldn't mail them) and username (since that's required for an account?). There is no need to set a password. The reset email contains a link with a magic number in the urlpath, and it is assumed that only the addressee will have that information (optimistic, I know). When that link is visited, and if the magic number hasn't expired, the user is presented with a form for setting a new password for his account. This is all in place already.
You may want to add a convenient form for sending these things (I don't remember whether the existing admin form has a password email button). But at worst, you can go to the forgotten password page and enter their email. You might need to modify the email template to include the username in the email. On Tue, Oct 9, 2012 at 5:59 PM, Ian Foote <i...@feete.org> wrote: > I'm working on a small website for a small walking/mountaineering club. We > would like to create accounts for our members using the admin site, and > automatically email their details. I've googled a bit, but it isn't obvious > to me if I can do this. Ideally, we would add a username (email address) and > email the user a random password which they change when they first log in. > > Is this a sensible approach, and how can I do this? > > Thanks, > Ian > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.