Skip to main content

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:

  1. Automatically adding discord roles when adding attached DjangoGroup objects to a User
  2. Periodically syncing Discord entities with information from the Discord server


  1. Add django_discord_connector to your INSTALLED_APPS
  2. Include the django_discord_connector URLs in your
  3. Run python3 migrate to create the django_discord_connector tables
  4. Create a DiscordClient in the administration panel
  5. Load the default periodic tasks python3 loaddata discord_default_schedule.json


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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-discord-connector-1.2.1.tar.gz (14.8 kB view hashes)

Uploaded source

Built Distributions

django_discord_connector-1.2.1-py3.9.egg (52.0 kB view hashes)

Uploaded 3 9

django_discord_connector-1.2.1-py3.6.egg (54.2 kB view hashes)

Uploaded 3 6

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page