mailer/engine.py
def send_loop():
    """
    Loop indefinitely, checking queue at intervals of EMPTY_QUEUE_SLEEP and
    sending messages if any are on queue.
    """

    while True:
        while not Message.objects.all():
            print 'sleeping for %s seconds before checking queue again' % EMPTY_QUEUE_SLEEP
            sleep(EMPTY_QUEUE_SLEEP)
        send_all()

    Loop indefinitely, checking queue at intervals of EMPTY_QUEUE_SLEEP and
    sending messages if any are on queue.
    
Loop indefinitely, checking queue at intervals of EMPTY_QUEUE_SLEEP and
sending messages if any are on queue.
Loop indefinitely checking queue at intervals of EMPTY_QUEUE_SLEEP and sending messages if any are on queue .
def send_loop():
    while True:
        while not Message.objects.all():
            print 'sleeping for %s seconds before checking queue again' % EMPTY_QUEUE_SLEEP
            sleep(EMPTY_QUEUE_SLEEP)
        send_all()
def send_loop ( ) : while True : while not Message . objects . all ( ) : print 'sleeping for %s seconds before checking queue again' % EMPTY_QUEUE_SLEEP sleep ( EMPTY_QUEUE_SLEEP ) send_all ( )
Loop indefinitely, checking queue at intervals of EMPTY_QUEUE_SLEEP and
sending messages if any are on queue.
Loop indefinitely checking queue at intervals of EMPTY_QUEUE_SLEEP and sending messages if any are on queue .
"""
    Loop indefinitely, checking queue at intervals of EMPTY_QUEUE_SLEEP and
    sending messages if any are on queue.
    """