Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
drf-notification-system
Advanced tools
An app that sends notifications to internal users.
pip install drf-notification-system
Django Settings
INSTALLED_APPS = [
...
'notification_system',
]
Include the notification system urls in your project urls.py like this
path('notification-system/', include('notification_system.urls')),
Run python manage.py migrate
to create the notification system models.
If you want to change send email notification default queue name, set EMAIL_NOTIFICATION_QUEUE_NAME
constance on the settings.py
file. the default value is 'send_email_notification'
If you want to change send update outgoing message status default queue name, set UPDATE_OUTGOING_MESSAGE_STATUS_QUEUE_NAME
constance on the settings.py
file. the default value is 'update_outgoing_message_status'
If you want to change send email notification rate limit, set NOTIFICATION_SYSTEM_SEND_EMAIL_RATE_LIMIT
constance on the settings.py
file. the default value is '700/m'
If you want to change user fields to pass template as context data, set NOTIFICATION_SYSTEM_DEFAULT_USER_FIELD
constance on the settings.py
file. the default value is ['id', 'username', 'first_name', 'last_name', 'email']
Run Celery worker with the following command
celery -A 'project_name' worker --loglevel DEBUG -Q 'queue_name' --concurrency=1
celery -A 'project_name' worker --loglevel DEBUG -Q send_email_notification --concurrency=1
celery -A 'project_name' worker --loglevel DEBUG -Q update_outgoing_message_status --concurrency=1
FAQs
A Django app to sends notifications to internal users.
We found that drf-notification-system demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.