django-orchestra/orchestra/contrib/mailer/settings.py

25 lines
548 B
Python
Raw Permalink Normal View History

from django.utils.translation import gettext_lazy as _
2015-05-04 19:52:53 +00:00
from orchestra.contrib.settings import Setting
MAILER_DEFERE_SECONDS = Setting('MAILER_DEFERE_SECONDS',
(300, 600, 60*60, 60*60*24),
)
2015-05-05 19:42:55 +00:00
MAILER_MESSAGES_CLEANUP_DAYS = Setting('MAILER_MESSAGES_CLEANUP_DAYS',
2015-05-09 18:53:23 +00:00
7
2015-05-05 19:42:55 +00:00
)
2015-05-30 14:44:05 +00:00
MAILER_NON_QUEUED_PER_REQUEST_THRESHOLD = Setting('MAILER_NON_QUEUED_PER_REQUEST_THRESHOLD',
2,
2015-05-30 14:44:05 +00:00
help_text=_("Number of emails that will be sent immediately before starting to queue them."),
)
2015-06-05 12:39:58 +00:00
MAILER_BULK_MESSAGES = Setting('MAILER_BULK_MESSAGES',
500,
)