On 6 Dec 2008, at 19:59, Jeff FW wrote:

> Do you mean when a user is added via the admin interface, or when a
> user registers on the site through a view you have set up?  If it's
> through a view you've made, then just add the call to send_mail() in
> the view.  For the admin site, you'll want to look at signals:
> http://docs.djangoproject.com/en/dev/topics/signals/


Or of course, just overriding the save() method and sticking the  
send_mail() call in there.

At one point signals were said to me quite expensive to use, so  
overriding the save() method was always suggested as being better -  
not sure if that is still true though.

-- 
David Reynolds
[EMAIL PROTECTED]


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to