Skip to main content

A Django app for securely associating a user with a Discord account.

Project description

This is a simple Django app that allows users to bind their Discord accounts to their Django accounts and join a partner Discord server using the OAuth2 functionality of the Discord API.

Quick start

  1. Add “discord_bind” to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        ...
        'discord_bind',
    ]
  2. Include the polls URLconf in your project urls.py like this:

    url(r'^discord/', include('discord_bind.urls')),
  3. Run python manage.py migrate to create the discord_bind models.

  4. Start the development server and visit http://127.0.0.1:8000/admin/ to add a Discord invite code (you’ll need the Admin app enabled).

  5. Visit https://discordapp.com/developers/applications/me to create an application. Add http://127.0.0.1:8000/discord/cb as a redirect URI.

  6. Add the Client ID and Secret values to the project settings.py file:

    DISCORD_CLIENT_ID = 212763200357720576
    DISCORD_CLIENT_SECRET = MfpBbcX2Ga3boNhoQoBTdHNUS2B1xX8f
  1. Visit http://127.0.0.1:8000/discord/ to bind your Discord account and auto-accept the invite code.

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-bind-0.1.2.zip (19.7 kB view hashes)

Uploaded Source

Built Distribution

django_discord_bind-0.1.2-py2.py3-none-any.whl (16.3 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page