Using django-digested you can set up notification emails for your users, sent out either immediately or in regular batches (“digests”).
Installation:
pip install django-digested
Usage:
INSTALLED_APPS += [‘digested’] manage.py migrate digested
Now subclass digested.digest_managers.BaseDigestManager and override these methods:
get_items(self) get_subscribers_for_item(self, item) get_updates_for_digest(self, item, preference) send_one_instant_update(self, subscriber, update) send_one_digest_update(self, subscriber, preference, updates)
Call send_instant_update to send out instant updates, and send_digest_updates at appropriate regular intervals.
Release files for django-digested 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-digested-0.1.2.tar.gz | 10.7 kB | Details |
Release files / django-digested-0.1.2.tar.gz
| Download URL | django-digested-0.1.2.tar.gz |
|---|---|
| Size | 10.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
57addf1854e628ff3b03783c1c6189447704a7082b1a9ef1a0dd9d2e0417d0fb
|
|
BLAKE2b-256 checksum How to use checksums |
c1eea42dc336ac4182ba491fa1b99e7d8276830400f169bbeead9cdd95be5753
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |