django-wiretap-0.1.2
توضیحات
https://github.com/nathforge/django-wiretap
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | django-wiretap-0.1.2 |
| نام | django-wiretap |
| نسخه کتابخانه | 0.1.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Nathan Reynolds |
| ایمیل نویسنده | email@nreynolds.co.uk |
| آدرس صفحه اصلی | https://github.com/nathforge/django-wiretap |
| آدرس اینترنتی | https://pypi.org/project/django-wiretap/ |
| مجوز | UNKNOWN |
Django Wiretap
==============
Captures HTTP requests & responses for debugging.
This is an early release, and is **not** suitable for production use.
Screenshots
-----------
List
^^^^
.. image:: https://raw.githubusercontent.com/nathforge/django-wiretap/master/screenshot-list.png
View
^^^^
.. image:: https://raw.githubusercontent.com/nathforge/django-wiretap/master/screenshot-view.png
Usage:
------
- Install the package with ``pip install django-wiretap``
- Edit Django settings:
- Add ``'wiretap'`` to ``INSTALLED_APPS``.
- Add ``'wiretap.middleware.WiretapMiddleware'`` to your
``MIDDLEWARE_CLASSES``.
- Create models with ``./manage.py syncdb``
- Go to Django admin, add a new ``Tap``.
- This contains a path `regex <https://developers.google.com/edu/python/regular-expressions>`_,
which is matched against the full path including the query string.
- For example, to capture everything within the ``/api/`` path of your site,
use ``'^/api/'``.
- If you just want to test Wiretap, set it to ``'/'``.
HTTP request/responses will now be saved to the `Message` admin page.
Note that Wiretap will be disabled if Django is not in debug mode.
نحوه نصب
نصب پکیج whl django-wiretap-0.1.2:
pip install django-wiretap-0.1.2.whl
نصب پکیج tar.gz django-wiretap-0.1.2:
pip install django-wiretap-0.1.2.tar.gz