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 hashes)

Uploaded Source

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