A simple Django application that adds Discord entities and SSO handling
Project description
Django Discord Connector
Django Discord Connector is a saimple Django application that adds models, urls, and Celery tasks to help manage Discord entities.
There are several behaviors that the application will add:
- Automatically adding discord roles when adding attached DjangoGroup objects to a User
- Periodically syncing Discord entities with information from the Discord server
Installation
- Add django_discord_connector to your INSTALLED_APPS
- Include the django_discord_connector URLs in your urls.py
- Run
python3 manage.py migrate
to create the django_discord_connector tables - Create a DiscordClient in the administration panel
- Load the default periodic tasks
python3 manage.py loaddata discord_default_schedule.json
Settings
The Django Discord Connector adds settings which change the behavior of the celery tasks and other functionality.
Setting | Values | Description |
---|---|---|
DJANGO_DISCORD_REMOTE_PRIORITY |
True / False | sync_discord_user_discord_groups will update the DiscordUser according to the remote Discord groups, instead of the local groups. |
Provided URLs
URL Name | Description |
---|---|
django-discord-connector-sso-callback | The callback url for SSO tokens (sso/callback ) |
django-discord-connector-sso-token-add | Redirects users to the SSO login for Discord |
django-discord-connector-sso-token-remove | Removes an SSO token (expects kwarg pk) |
Provided Celery Tasks
Task Name | Action |
---|---|
sync_discord_users | Updates all information and groups for a DiscordUser |
sync_discord_groups | Updates all DiscordGroup objects with groups from Discord server |
sync_discord_channels | Updates all DiscordChannel objects with channels from Discord server |
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
Built Distributions
File details
Details for the file django-discord-connector-1.2.1.tar.gz
.
File metadata
- Download URL: django-discord-connector-1.2.1.tar.gz
- Upload date:
- Size: 14.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d73f98dd7908cfc558d015b9f703c93b9f69bfb7c2ecd77d6078bf408697f1c0 |
|
MD5 | 4a92fb638b2793a0fae5a8511ceb714f |
|
BLAKE2b-256 | 4c03a83879611e3249316d4e7bd604231fe053ada66683d935ef3c91876b2d61 |
File details
Details for the file django_discord_connector-1.2.1-py3.9.egg
.
File metadata
- Download URL: django_discord_connector-1.2.1-py3.9.egg
- Upload date:
- Size: 52.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.22.0 setuptools/28.8.0 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.6.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2b1cc08b485b7633ad2cb5bb118fa63d083e31c3f210c8c709ef5e45b39e5d4 |
|
MD5 | f3b9099e5b32b070e6d1b9439e88d10a |
|
BLAKE2b-256 | d9e69b118630e7a8976f89d7554037e808ae36c136fc7bcc6cdafe0a12386bc5 |
File details
Details for the file django_discord_connector-1.2.1-py3.6.egg
.
File metadata
- Download URL: django_discord_connector-1.2.1-py3.6.egg
- Upload date:
- Size: 54.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.22.0 setuptools/28.8.0 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.6.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f41b7a140203588b1d04c2195279737f4898d27c3f3598653f7335b17c2d8c3 |
|
MD5 | 65152d8e073e40ad66bf2a5f762e7d21 |
|
BLAKE2b-256 | 587ed84de8dc04ba6e53fe7d3bfed2a164d42ea96c5769fa8143e70d45b1ad07 |