Django Slack



Django Slack Logger. GitHub Gist: instantly share code, notes, and snippets. I am trying to integrate slack in my python-django code and I was going through the documentation this one. I am not able to understand what is the path/to/mymessage.slack refer to.

Latest version

Released:

A simple Django app to send notifications to slack.

Project description

django-slack-notifications

Extremely simple and easy slack integration with django.

Requirements

  • Python (3.3+)
  • Django (1.7, 1.8, 1.9)
  • Slack Webhook Url: https://api.slack.com/custom-integrations

Installation

Install using pip

Add django-slack-notifications to your INSTALLED_APPS setting.

Add SLACK_NOTIFICATIONS to your settings.py

WEBHOOK URL is required. You can get your webhook url from slack.See https://api.slack.com/custom-integrations

Django

CHANNEL, USERNAME, ICON_EMOJI is optional parameters. Ifdefault value is set, you don’t need to pass parameter to yoursend_message method. See below.

Usage

Slack

In your python code,

send_message returns default slack response. If succeed, it returns200.

If you set default values CHANNEL, USERNAME, you can callsend_message like…

channel and username is set default value that you defined insettings.py

Django Slack Channels

if ICON_EMOJI is not set, it uses default slack webhook integrationssettings that you’ve defined athttps://prnd.slack.com/apps/manage/custom-integrations

Release historyRelease notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Django Slacker

Files for django-slack-notification, version 1.0.0
Filename, sizeFile typePython versionUpload dateHashes
Filename, size django-slack-notification-1.0.0.tar.gz (3.0 kB) File type Source Python version None Upload dateHashes
Close

Django Slacks

Hashes for django-slack-notification-1.0.0.tar.gz

Django Slack Bot

Hashes for django-slack-notification-1.0.0.tar.gz
AlgorithmHash digest
SHA2564182ad6558e685744b4c5974e0b03b13d417f05476b7ae020251805f82a35793
MD52bdd8655370135ab536787a59b5347e5
BLAKE2-2564eb717a429ce4f278b9fff81d3c47e5b39bf16b1683482fa3c767262055a5aaa