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
Close
Hashes for django-discord-connector-1.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d73f98dd7908cfc558d015b9f703c93b9f69bfb7c2ecd77d6078bf408697f1c0 |
|
MD5 | 4a92fb638b2793a0fae5a8511ceb714f |
|
BLAKE2b-256 | 4c03a83879611e3249316d4e7bd604231fe053ada66683d935ef3c91876b2d61 |
Close
Hashes for django_discord_connector-1.2.1-py3.9.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2b1cc08b485b7633ad2cb5bb118fa63d083e31c3f210c8c709ef5e45b39e5d4 |
|
MD5 | f3b9099e5b32b070e6d1b9439e88d10a |
|
BLAKE2b-256 | d9e69b118630e7a8976f89d7554037e808ae36c136fc7bcc6cdafe0a12386bc5 |
Close
Hashes for django_discord_connector-1.2.1-py3.6.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f41b7a140203588b1d04c2195279737f4898d27c3f3598653f7335b17c2d8c3 |
|
MD5 | 65152d8e073e40ad66bf2a5f762e7d21 |
|
BLAKE2b-256 | 587ed84de8dc04ba6e53fe7d3bfed2a164d42ea96c5769fa8143e70d45b1ad07 |