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_app' to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [ ... 'slack_app', ... ]
-
Include the urls in your project
urls.py
like this:path('slack/', include('slack_app.urls')),
-
Run
python manage.py migrate
to create theslack_app
models. -
Add
slack_app.auth_backends.SlackAuthenticationBackend
to yourAUTHENTICATION_BACKENDS
AUTHENTICATION_BACKENDS = [ 'django.contrib.auth.backends.ModelBackend', 'slack_app.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.1.tar.gz
(9.4 kB
view hashes)
Built Distribution
Close
Hashes for django_slack_app-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aaefef101f0d8c5593ab0cf2ee9b3cff2ee5e90206ab9a199b9cb8768eff8c77 |
|
MD5 | c41894a48d417e2b126324629a386db2 |
|
BLAKE2b-256 | 1b3aa3859cbc2c6f119691878450a9880214cb8b6be08fc7aaec979e7a7ebadc |