This task would be better left to a background batch processor such as
Celery, which integrates nicely via the Django-celery package. Submitting
the form would place a job into the Celery queue, and within that job you
can pull 100 (or however many you need, see
https://docs.djangoproject.com/en/1.
def send( self ):
c = Context({ "content": self.introductory_text, "user":None,
"request":None, "updates": [] })#Section.updates.all()[:20] })
t = loader.get_template('emailer/html/updates.html')
subject = self.subject
recipients = []
if self.to_all_prin
2 matches
Mail list logo