Skip to content

Instantly share code, notes, and snippets.

@oeon
Created January 20, 2012 18:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oeon/1648880 to your computer and use it in GitHub Desktop.
Save oeon/1648880 to your computer and use it in GitHub Desktop.
send email when new user registers [GeoNode], add to last line of `/var/lib/geonode/lib/python2.6/site-packages/registration/models.py`
#don't forget to add!
#from django.core.mail import send_mail
send_mail("New user: " + self.user.email + " has registered on GeoNode", "New user: " + self.user.email + " has registered on GeoNode as " + self.user.username, settings.DEFAULT_FROM_EMAIL, ['your_email@example.com', 'other_admin@example.com'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment