django-requestrepeat-0.5
توضیحات
A django app that repeats one http POST into several.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | django-requestrepeat-0.5 |
| نام | django-requestrepeat |
| نسخه کتابخانه | 0.5 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Oceana Technologies |
| ایمیل نویسنده | ben@oceanatech.com |
| آدرس صفحه اصلی | https://github.com/clickyspinny/django-requestrepeat/tree/master/requestrepeat |
| آدرس اینترنتی | https://pypi.org/project/django-requestrepeat/ |
| مجوز | BSD License |
=====
requestrepeat
=====
A Django app that will receive a web POST request and
resend that same POST to several servers.
Quick start
-----------
1. Add "requestrepeat" to your INSTALLED_APPS setting like this::
```
INSTALLED_APPS = (
...
'requestrepeat',
)
```
2. Add some code
Usage:
```
repeat(request,addresses=("http://my.first.url.com/ipn", "http://my.second.url.com/ipn/"))
```
Example:
```
urls.py
url("^repeater/$", 'requestrepeat.views.listener', name='listener'),
views.py
@csrf_exempt
def listener(request):
return repeat(request,addresses=("http://127.0.0.4:8000", "http://127.0.0.6:8000"))
```
3. Send a POST request with data to http://127.0.0.1:8000/repeater/ replicate that post to several urls.
نحوه نصب
نصب پکیج whl django-requestrepeat-0.5:
pip install django-requestrepeat-0.5.whl
نصب پکیج tar.gz django-requestrepeat-0.5:
pip install django-requestrepeat-0.5.tar.gz