Skip to content

Django App to let users configure a notification system in Surface. Supports Email and Slack

License

Notifications You must be signed in to change notification settings

surface-security/django-notification-sender

Repository files navigation

Notifications

Pluggable app to centralize notification configuration.

Available settings:

  • NOTIFICATIONS_MAIL_FROM - sender for mail notifications (falls back to settings.DEFAULT_FROM_EMAIL)
  • NOTIFICATIONS_SLACK_APP_TOKEN - Slack app token to be used to post the notifications using API, not incoming webhook (no default, set it or slack won't work!)

To use external notifications make sure to update your project urls.py to add a valid path for notifications

urlpatterns = [
    ...
    path(
        'api/notifications/', include(('notifications.urls', 'notifications'), namespace='notifications')
    ),
    ...
]

This would allow external notifications to be POSTed to api/notifications/notify/

About

Django App to let users configure a notification system in Surface. Supports Email and Slack

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages