A Django app to help integrate Slack
Project description
Django Slack Integration
This application helps you to integrate your existing Django application with Slack.
It provides you with
- Models - needed to keep information from Slack API
- Decorators - help you to write implementation of your Slack endpoints
- Authorisation backend - allows you to pair your existing user model with your Slack users
- Views - OAuth callbacks for "Add To Slack" and "Login With Slack" actions
Installation
-
Add 'slack_integration' to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [ ... 'slack_integration', ... ]
-
Include the urls in your project
urls.py
like this:path('slack/', include(('slack_integration.urls', 'slack_integration'), namespace='slack_integration')),
-
Run
python manage.py migrate
to create theslack_integration
models. -
Add
slack_integration.auth_backends.SlackAuthenticationBackend
to yourAUTHENTICATION_BACKENDS
AUTHENTICATION_BACKENDS = [ 'django.contrib.auth.backends.ModelBackend', 'slack_integration.auth_backends.SlackAuthenticationBackend', ]
-
Update your
settings.py
SLACK_CLIENT_ID="" SLACK_CLIENT_SECRET="" SLACK_SIGNING_SECRET="" SLACK_LOGIN_OAUTH_REDIRECT_URL="" SLACK_INSTALL_OAUTH_REDIRECT_URL=""
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-slack-app-1.0.0.tar.gz
(10.1 kB
view hashes)
Built Distribution
Close
Hashes for django_slack_app-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94d79e6c4a57272e32b7f5e3c92fe93cad4cc8e65cdaf9dbfb4ef4fcbb6dd4a7 |
|
MD5 | e4cb7be010f5904f38a215eda364f993 |
|
BLAKE2b-256 | f59524cd622f5ad997c6c9f44c7083868c89e05379b1b15c1e1219da00230fe3 |