Skip to main content

Very simple http request-response log in database for debugging APIs.

Project description


.. image::

.. image::

.. image::

Very simple http request-response log in database for debugging APIs.

I've used it to debug small API for Django, built with DRF.

.. warning::

This is not for production systems, if you want to handle reasonable amount of
data, please use `logstash`_, `Runscope`_, `django-request`_ or similar solutions.
Each one has it's own focus.

.. _logstash:
.. _runscope:
.. _django-request:


Install django-httplog::

pip install django-httplog

Add 'httplog' to INSTALLED_APPS::


Make sure user model is available either via settings.AUTH_USER_MODEL or
``django.contrib.auth`` is installed too.

Launch `` syncdb`` or `` migrate``

Add middleware::


Add viewnames to log, or app_name (from to log::

HTTPLOG_URLNAMES = ['urlname1', 'urlname_x']
HTTPLOG_APPS = ['my_super_app_name']

By default, nothing is logged.


* TODO: support DRF user


0.1.0 (2013-08-15)

* First release

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-httplog-0.2.3.tar.gz (7.4 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page