Skip to content
Discord integration for Django, supporting error reporting via webhooks.
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
discord_integration
LICENSE
README.md
requirements.txt
setup.py

README.md

Django Discord Integration

Discord integration for Django, supporting error reporting via webhooks.

Installation

$ pip install django-discord-integration

In your settings.py, add the following:

INSTALLED_APPS = (
    'discord_integration',
    'solo',
    ...
)

Next, migrate the database:

$ python manage.py migrate

Finally, set the Discord webhook URL in the Django admin, as well as the bot username and avatar URL if necessary.

Sample Logging Configuration

LOGGING = {
    'handlers': {
        'discord_integration': {
            'level': 'ERROR',
            'class': 'discord_integration.log.DiscordMessageHandler',
        },
    },
    'loggers': {
        'handlers': ['discord_integration'],
    },
}
You can’t perform that action at this time.