Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/giginet/django-slack-invitation

Automatic invitation to Slack team
https://github.com/giginet/django-slack-invitation

Last synced: 3 months ago
JSON representation

Automatic invitation to Slack team

Awesome Lists containing this project

README

        

django-slack-invitation
=======================

.. image:: https://travis-ci.org/giginet/django-slack-invitation.svg?branch=master
:target: https://travis-ci.org/giginet/django-slack-invitation
.. image:: https://coveralls.io/repos/github/giginet/django-slack-invitation/badge.svg?branch=master
:target: https://coveralls.io/github/giginet/django-slack-invitation?branch=master

``django-slack-invitation`` invites users to Slack automatically when Django users are registered.

Supported python versions
2.7, 3.3, 3.4, 3.5
Supported django versions
1.7 - 1.10

Installation
-------------------

Install using pip

.. code:: sh

pip install django-slack-invitation

Usage
------------------

Add ``slack_invitation`` into ``INSTALL_APPS`` in ``settings.py`` file

.. code:: python

INSTALLED_APPS += (
'slack_invitation',
)

Add ``DJANGO_SLACK_INVITATION_TEAM`` and ``DJANGO_SLACK_INVITATION_TOKEN`` in ``settings.py`` file

.. code:: python

DJANGO_SLACK_INVITATION_TEAM = 'your-slack-team-name'
DJANGO_SLACK_INVITATION_TOKEN = 'your-slack-token'

Execute ``register_slack_invitation`` on ``models.py`` or ``urls.py``.

.. code:: python

from slack_invitation import register_slack_invitation

register_slack_invitation()

When Django users are registered, invitation mail will send automatically.

Author
-------------------

giginet

LICENSE
-------------------------

MIT License