Skip to content

presslabs/django-rest-hooks-delivery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django REST Hooks Delivery

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published