Generic models for implement message based features
The full documentation is at https://django-fever-notifications.readthedocs.org.
Install django-fever-notifications:
pip install django-fever-notifications
Then use it in a project:
from fevernotifications.models import Notification
from fevernotifications.shortcuts import create_notification
# Create a notification
create_notification(user, title="Hello", message="Hello world!")
# Query all notifications per user
Notification.objects.by_target(user)
- TODO
Does the code actually work?
source <YOURVIRTUALENV>/bin/activate (myenv) $ pip install -r requirements-test.txt (myenv) $ python runtests.py
Tools used in rendering this package: