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.2.tar.gz
(9.6 kB
view hashes)
Built Distribution
Close
Hashes for django_slack_app-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3062e5a9c282d97962ce38f7e5316ebc8ef66bd5633723fdf9504b84904a8a11 |
|
MD5 | d3ce26838c3b9a553e98a14fb9b6a454 |
|
BLAKE2b-256 | b20618390811fd1b07e5509f3e7ab8985ce92aea048374a52f1e9828f64dbba9 |