Skip to main content

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

  1. Add “weblogtools” to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        ...
        'weblogtools',
    ]
  2. Include the weblogtools URLconf in your project urls.py like this:

    path('weblogtools/', include('weblogtools.urls')),
  3. Run python manage.py migrate to create the weblogtools models.

  4. now you can use weblogtools like belows. more see the weblogtools package source code:

    with weblogtools.biz.TimeIt() as timeit:
        res = requests.post(url, json=payload)
    weblogtools.biz.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.3.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

django_weblogtools-0.1.3-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file django-weblogtools-0.1.3.tar.gz.

File metadata

  • Download URL: django-weblogtools-0.1.3.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.9

File hashes

Hashes for django-weblogtools-0.1.3.tar.gz
Algorithm Hash digest
SHA256 f26132f1087574da23d23c3d6297818d89496420f0d3a9237d3f2e155e2d2ce9
MD5 e7abb41ae54019f30b0e04b0a02da5e1
BLAKE2b-256 4ec9659329488a89a02ef55003aacc35fd30138db91b2ea67ef899f3ed43c4bb

See more details on using hashes here.

File details

Details for the file django_weblogtools-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: django_weblogtools-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.9

File hashes

Hashes for django_weblogtools-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b4086d54a3ca68974c501689a26ca5b30eca1597a0701f9dd08731cfec674aaa
MD5 fcec81cc4d1ba92280d0c9846289ad71
BLAKE2b-256 7c4a6f8d59f30c8fb38037cc69370c6c53e9b9c3a9e465ec61fa703e1086d5bb

See more details on using hashes here.

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