Management Commands
Note
This page is for developers who want to customize or extend OpenWISP Notifications, whether for bug fixes, new features, or contributions.
For user guides and general information, please see:
populate_notification_preferences
This command will populate notification preferences for all users for organizations they are member of.
Note
Before running this command make sure that the celery broker is running and reachable by celery workers.
Example usage:
# cd tests/
./manage.py populate_notification_preferences
create_notification
Warning
This command is for development and testing only. Do not run it in production.
This command creates a generic_message notification for superusers and
administrators of the first organization in the database. It respects
their web notification preferences. An email is sent only if the recipient
has enabled email notifications for this type and their account email is
verified.
Example usage:
# cd tests/
./manage.py create_notification