Very simple http request-response log in database for debugging APIs.
Project description
=============================
django-httplog
=============================
.. image:: https://badge.fury.io/py/django-httplog.png
:target: http://badge.fury.io/py/django-httplog
.. image:: https://travis-ci.org/futurecolors/django-httplog.png?branch=master
:target: https://travis-ci.org/futurecolors/django-httplog
.. image:: https://coveralls.io/repos/futurecolors/django-httplog/badge.png?branch=master
:target: https://coveralls.io/r/futurecolors/django-httplog?branch=master
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: http://logstash.net/
.. _runscope: https://www.runscope.com/
.. _django-request: https://github.com/kylef/django-request
Quickstart
----------
Install django-httplog::
pip install django-httplog
Add 'httplog' to INSTALLED_APPS::
INSTALLED_APPS = (
...
'httplog',
...
)
Make sure user model is available either via settings.AUTH_USER_MODEL or
``django.contrib.auth`` is installed too.
Launch ``manage.py syncdb`` or ``manage.py migrate``
Add middleware::
MIDDLEWARE_CLASSES = (
...
'httplog.middleware.RequestResponseLoggingMiddleware',
...
)
Add viewnames to log, or app_name (from ulrs.py) to log::
HTTPLOG_URLNAMES = ['urlname1', 'urlname_x']
HTTPLOG_APPS = ['my_super_app_name']
By default, nothing is logged.
Features
--------
* TODO: support DRF user
History
-------
0.1.0 (2013-08-15)
++++++++++++++++++
* First release
django-httplog
=============================
.. image:: https://badge.fury.io/py/django-httplog.png
:target: http://badge.fury.io/py/django-httplog
.. image:: https://travis-ci.org/futurecolors/django-httplog.png?branch=master
:target: https://travis-ci.org/futurecolors/django-httplog
.. image:: https://coveralls.io/repos/futurecolors/django-httplog/badge.png?branch=master
:target: https://coveralls.io/r/futurecolors/django-httplog?branch=master
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: http://logstash.net/
.. _runscope: https://www.runscope.com/
.. _django-request: https://github.com/kylef/django-request
Quickstart
----------
Install django-httplog::
pip install django-httplog
Add 'httplog' to INSTALLED_APPS::
INSTALLED_APPS = (
...
'httplog',
...
)
Make sure user model is available either via settings.AUTH_USER_MODEL or
``django.contrib.auth`` is installed too.
Launch ``manage.py syncdb`` or ``manage.py migrate``
Add middleware::
MIDDLEWARE_CLASSES = (
...
'httplog.middleware.RequestResponseLoggingMiddleware',
...
)
Add viewnames to log, or app_name (from ulrs.py) to log::
HTTPLOG_URLNAMES = ['urlname1', 'urlname_x']
HTTPLOG_APPS = ['my_super_app_name']
By default, nothing is logged.
Features
--------
* TODO: support DRF user
History
-------
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 details)
File details
Details for the file django-httplog-0.2.3.tar.gz
.
File metadata
- Download URL: django-httplog-0.2.3.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | be7ba2c8131f961a156e2e96869476d4d27008f204cf19e387c66e675e2dfeca |
|
MD5 | c0b80e3b0fd953b467c5aabfc98667c3 |
|
BLAKE2b-256 | 6ea8c9c7792750b2c20156e75488b8276507d73f43ddf628bb5242eae16e4860 |