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
Add “discord_bind” to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [ ... 'discord_bind', ]
Include the polls URLconf in your project urls.py like this:
url(r'^discord/', include('discord_bind.urls')),
Run python manage.py migrate to create the discord_bind models.
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).
Visit https://discordapp.com/developers/applications/me to create an application. Add http://127.0.0.1:8000/discord/cb as a redirect URI.
Add the Client ID and Secret values to the project settings.py file:
DISCORD_CLIENT_ID = 212763200357720576 DISCORD_CLIENT_SECRET = MfpBbcX2Ga3boNhoQoBTdHNUS2B1xX8f
Visit http://127.0.0.1:8000/discord/ to bind your Discord account and auto-accept the invite code.
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 Distribution
Hashes for django_discord_bind-0.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0982baa619857041572cd54b2a4cb616cd189fc19e19dc42eaeece09e3a5170e |
|
MD5 | b93ea197e88bfc21679e11dd1ba35208 |
|
BLAKE2b-256 | da35896a8937648f2a5a6e881500ef514503eb55fe0e3327b2d37b7048d438b5 |