Add newsletter

This commit is contained in:
cuom1999 2020-08-02 17:34:20 -05:00
parent 8f6507fdab
commit 991835e4f4
4 changed files with 30 additions and 7 deletions

View file

@ -203,6 +203,7 @@ else:
},
('judge.BlogPost', 'fa-rss-square'),
('judge.Comment', 'fa-comment-o'),
('judge.Ticket', 'fa-exclamation-circle'),
('flatpages.FlatPage', 'fa-file-text-o'),
('judge.Solution', 'fa-pencil'),
],
@ -238,6 +239,7 @@ INSTALLED_APPS += (
'django_jinja',
'chat_box',
'channels',
'newsletter',
)
MIDDLEWARE = (
@ -514,4 +516,16 @@ CHANNEL_LAYERS = {
"hosts": [('0.0.0.0', 6379)],
},
},
}
}
NEWSLETTER_CONFIRM_EMAIL = False
# Amount of seconds to wait between each email. Here 100ms is used.
NEWSLETTER_EMAIL_DELAY = 0.1
# Amount of seconds to wait between each batch. Here one minute is used.
NEWSLETTER_BATCH_DELAY = 60
# Number of emails in one batch
NEWSLETTER_BATCH_SIZE = 100