A simple Django app to log http request / response with external services.
Project description
Weblogtools is a simple Django app to log http request to database, in order to have a nice interface to check the input / output data with external service.
Quick start
Add “weblogtools” to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [ ... 'weblogtools', ]
Include the weblogtools URLconf in your project urls.py like this:
path('weblogtools/', include('weblogtools.urls')),
Run python manage.py migrate to create the weblogtools models.
now you can use weblogtools like belows. more see the weblogtools package source code:
with weblogtools.TimeIt() as timeit: res = requests.post(url, json=payload) weblogtools.http_log_from_response('upload_case', res, timeit.duration)
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-weblogtools-0.1.tar.gz
(6.6 kB
view hashes)
Built Distribution
Close
Hashes for django_weblogtools-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6e620225b98a8cc8cb127c4ce1cccf16babe155b8f2f9292a4b6f10299f1403 |
|
MD5 | c8a3f7bf19f8a0f65234a1c436281dd3 |
|
BLAKE2b-256 | 594fd430599824779f969c4a25c2267abd2d7baeb0da31ce922839956d22e473 |