def new_laowai(sender, instance, **kwargs): apikey = settings.PROWL_API_KEY p = Prowl(apikey) try: p.add( 'laowailai.com', 'New Laowai', 'A new user just registered', ) except Exception,msg: print msg