
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
django-slack-notification
Advanced tools
Extremely simple and easy slack integration with django.
Install using pip
::
pip install django-slack-notifications
Add django-slack-notifications
to your INSTALLED_APPS
setting.
::
INSTALLED_APPS = (
...
'django-slack-notifications',
)
Add SLACK_NOTIFICATIONS
to your settings.py
::
SLACK_NOTIFICATIONS = {
'WEBHOOK_URL': '{your slack webhook url}'
'CHANNEL': '{default slack channel that you want to send message.}',
'USERNAME': '{default message sender name}',
'ICON_EMOJI': '{default sender emoticon}',
}
WEBHOOK URL
is required. You can get your webhook url from slack.
See https://api.slack.com/custom-integrations
CHANNEL
, USERNAME
, ICON_EMOJI
is optional parameters. If
default value is set, you don't need to pass parameter to your
send_message
method. See below.
In your python code,
::
from django-slack-notifications.utils import send_message
send_message(channel='#general', username='test', text="Hi, I'm a test message.")
send_message
returns default slack response. If succeed, it returns
200.
If you set default values CHANNEL
, USERNAME
, you can call
send_message
like...
::
from django-slack-notifications.utils import send_message
send_message(text="Hi, I'm a test message.")
channel
and username
is set default value that you defined in
settings.py
if ICON_EMOJI
is not set, it uses default slack webhook integrations
settings that you've defined at
https://prnd.slack.com/apps/manage/custom-integrations
FAQs
A simple Django app to send notifications to slack.
We found that django-slack-notification 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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.