Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/s/t/staff.sitcon.org-HEAD/issues/utils.py   staff.sitcon.org(Download)
from notifications.models import *
from notifications.utils import get_mail_setting, send_template_mail, format_address, send_template_sms
 
def send_mail(sender, receiver, template_name, context):
	context['sender'] = sender
def send_sms(sender, receiver, template_name, context):
	context['sender'] = sender
	context['receiver'] = receiver
	return send_template_sms('', receiver.profile.phone, template_name, context)