Skip to main content

Various webhook deliverers for django-rest-hooks and django-rest-hooks-ng.

Project description

Various deliverers for django rest hooks and django rest hooks ng.

Installation

To get the latest stable release from PyPi

pip install django-rest-hooks-delivery

To get the latest commit from GitHub

pip install -e git+git://github.com/PressLabs/django-rest-hooks-delivery.git#egg=rest_hooks_delivery

Add rest_hooks_delivery to your INSTALLED_APPS

INSTALLED_APPS = (
    ...,
    'rest_hooks_delivery',
)

Don’t forget to migrate your database

./manage.py migrate rest_hooks_delivery # if you are using django > 1.7

./manage.py syncdb rest_hooks_delivery # if you are using django < 1.7

Usage

Make sure you have added rest_hooks_delivery to the list of INSTALLED_APPS before django.contrib.admin and that you have set HOOK_DELIVERER to one of the available deliverers. Currently only rest_hooks_delivery.deliverers.retry is available.

### settings.py ###

INSTALLED_APPS = [
...
'rest_hooks_delivery',
'django.contrib.admin',
]

HOOK_DELIVERER = 'rest_hooks_delivery.deliverers.retry'

It also provides a management command useful for retrying failed hooks.

./manage.py retry_failed_hooks

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-rest-hooks-delivery-0.2.1.tar.gz (6.4 kB view details)

Uploaded Source

File details

Details for the file django-rest-hooks-delivery-0.2.1.tar.gz.

File metadata

File hashes

Hashes for django-rest-hooks-delivery-0.2.1.tar.gz
Algorithm Hash digest
SHA256 949f5da9bc02b53a0386ba73a49850061e4d9d12627ae6fa5306f77977f3d452
MD5 9445bde29f7141852219a0e91852d2be
BLAKE2b-256 0045af0433eb3793f717129f05d73a32100528c4575e7f696ba939f229e4a1b0

See more details on using hashes here.

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