Skip to main content

Pluggable Django applications to record user login and logout events and URL views.

Project description

django-request-log

Build Status Coverage Status Requirements Status

django-request-log is pluggable Django application to keep track user login and logout events and URLs views developed at ORCAS.

Quickstart

Installation

django-request-log is available on PyPI, so you can install it with pip:

$ pip install django-request-log

Or add django-request-log to the project’s requirement file

Usage

  1. Add log to your INSTALLED_APPS.

  2. Add log.middleware.RequestLoggingMiddleware to your MIDDLEWARE_CLASSES:

    MIDDLEWARE_CLASSES = (
        'django.middleware.common.CommonMiddleware',
        'django.contrib.sessions.middleware.SessionMiddleware',
        'django.middleware.csrf.CsrfViewMiddleware',
        ...
        'log.middleware.RequestLoggingMiddleware',
    )
  3. Run:

    $ python manage.py syncdb

TODOs and BUGS

See: https://github.com/orcasgit/django-request-log/issues

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page