|
| 1 | +======== |
| 2 | +Overview |
| 3 | +======== |
| 4 | + |
| 5 | +**A Django app that can handle multiple ways of showing different notification types. It's all based on multiple input |
| 6 | +types and output backends.** |
| 7 | + |
| 8 | + |
| 9 | +Notifications |
| 10 | +============= |
| 11 | +A notification could be anything: |
| 12 | + |
| 13 | +- there was an error in your form submission |
| 14 | +- your account has been created |
| 15 | +- your account has been activated |
| 16 | +- you have received a private message on a forum |
| 17 | +- there is a new comment on your blog |
| 18 | +- someone liked your profile |
| 19 | +- a message from the administrator |
| 20 | + |
| 21 | +As far as this project is concerned, a notification is nothing more but an (optional) subject, text body, and a level |
| 22 | +(info, success, error, warning). |
| 23 | + |
| 24 | +Backends |
| 25 | +======== |
| 26 | +There are multiple output backends. Some possible examples are: |
| 27 | + |
| 28 | +- email |
| 29 | +- a popup in your webbrowser |
| 30 | +- sms message |
| 31 | +- iPhone push notification |
| 32 | +- Django's messages app |
| 33 | + |
| 34 | +Some backends can process notifications in real time (Django's messages app for example), and others should run in the |
| 35 | +background (sending email, sending push messages to iPhones). Each backend specifies what its mode of operation is. |
| 36 | + |
| 37 | +Notification types |
| 38 | +================== |
| 39 | +A notification type is the glue between a message (input) and one or more possible backends (output). For example, you |
| 40 | +might want to send all account related messages to email only, but notifications about new private messages could go to |
| 41 | +email, iPhone push messages, Django's own messages app, you name it. |
| 42 | + |
| 43 | +Each notification type can specify its allowed backend, and each user can specify his preferred output backend(s). |
| 44 | +Each notification will then figure out what backend to use based on this information. |
| 45 | + |
| 46 | +Settings |
| 47 | +======== |
| 48 | +Some backends will need extra information from the user, for example a phone number, email address or iPhone device id. |
| 49 | + |
| 50 | +This project doesn't provide a settings app where users can configure these. Instead, this is left to an exercise to the |
| 51 | +reader (at least for now). Each output backend can accept a variable number of keyword arguments, so building a custom |
| 52 | +backend that needs a new setting isn't a problem. |
| 53 | + |
| 54 | +Queue |
| 55 | +===== |
| 56 | +Some notification backends can't process in real time, instead adding them to a queue. At this moment, this is based on |
| 57 | +a simple database model and a manage.py script which can be used from your cron. |
| 58 | + |
| 59 | +In the future celery tasks should be added too. |
| 60 | + |
| 61 | +Installation |
| 62 | +============ |
| 63 | +See `INSTALL.rst` |
| 64 | + |
| 65 | +Usage |
| 66 | +===== |
| 67 | +See `USAGE.rst` for examples |
0 commit comments