Re: how to break an email list into manageable sizes for emailing

2014-05-03 Thread James Schneider
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.

how to break an email list into manageable sizes for emailing

2014-05-02 Thread MikeKJ
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