Django Dans Notifications
Description
A Django app to handle notifications.
Support for basic notifications, push notifications, and email notifications.
Quick Start
pip install django-dans-notifications
See the Getting Started Guide for detailed installation and configuration instructions.
Requirements
- Python 3.8 or higher
- Django 3.1 or higher
- Django Rest Framework (with authentication configured)
Basic Usage
from django_dans_notifications.models.notifications import NotificationEmail
# Send an email notification
notification = NotificationEmail.objects.send_email(
subject="Welcome",
template="django-dans-emails/default.html",
sender="noreply@example.com",
recipients=["user@example.com"],
context={"team_name": "My Team"}
)
See the Usage Guide for more examples and advanced usage.
Features
Models
- NotificationEmail: Handles email notifications.
- NotificationBasic: Handles basic notifications.
- NotificationPush: Handles push notifications.
Managers
- NotificationEmailManager: Handles sending and managing email notifications.
- NotificationBasicManager: Handles basic notifications.
- NotificationPushManager: Handles push notifications.
API ViewSets
- NotificationEmailViewSet: API endpoints for email notifications.
- NotificationBasicViewSet: API endpoints for basic notifications.
- NotificationPushViewSet: API endpoints for push notifications.
Utility Classes
- NotificationManager: Exposes common functionality and maintains object permissions.
- Methods:
get_notifications_push/email/basic/all,mark_notification_basic_read.
- Methods:
Documentation
- Getting Started - Installation and configuration
- Usage Guide - How to send notifications and use the app
- API Documentation - REST API endpoints reference
- Model Documentation - Detailed model information
- Email Templates - Template system and customization
Support
For issues, questions, or contributions, please visit the GitHub repository.
https://danielnazarian.com
Copyright 2024 © Daniel Nazarian.
Metadata
Release files for django-dans-notifications 1.4.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 | Provenance | Actions |
|---|---|---|---|---|
| django_dans_notifications-1.4.2.tar.gz | 40.7 kB | Without provenance | Details for django_dans_notifications-1.4.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_dans_notifications-1.4.2-py3-none-any.whl | Python 3 | none | any | Details for django_dans_notifications-1.4.2-py3-none-any.whl |
Total release size: 92.7 kB
Release files / django_dans_notifications-1.4.2.tar.gz
| Download URL | django_dans_notifications-1.4.2.tar.gz |
|---|---|
| Size | 40.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
64e474873b58fc23cfdb664440dd76237396ca615d5ea709225a1a740ce88d7b
|
|
BLAKE2b-256 checksum How to use checksums |
f3095297ddc4998f782b0f4de837a40e686fd6d350e88a8cc41cc30583648150
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / django_dans_notifications-1.4.2-py3-none-any.whl
| Download URL | django_dans_notifications-1.4.2-py3-none-any.whl |
|---|---|
| Size | 52.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b351c284eecff1d60940713c7d828d7d744406689441097d94a13a2db1963972
|
|
BLAKE2b-256 checksum How to use checksums |
c9e67e7285e2a59915a484cc5be11b173e6e5a08b600bab4dfe53c2b395cd4be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Security for django-dans-notifications 1.4.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.