Skip to main content

Statistics middleware and analysis tools for django

Project description

Statistics middleware and analysis tools for django

Installation

To get the latest stable release from PyPi

$ pip install django-nox

Add all relevant apps to your INSTALLED_APPS

INSTALLED_APPS = (
    ...,
    'django_nox',
)

Add all middleware to your MIDDLEWARE

MIDDLEWARE = (
    ...,
    'django_nox.middleware.TimeLogMiddleware'
)

Don’t forget to migrate your database

./manage.py migrate

Usage

Running & Sorting Results

Once you’ve installed it, the request times will be log in database, and you can run this command to analyze the resulting data:

$ python manage.py nox_analyze

Settings

To configured some parmas in settings.py

NOX_SLOW_REQUEST

Default: 0

Slow request. Number of rows from which a request will be assumed to be slow and store to database.

Enjoy!

Email me with any questions: [liangjinfeng@youmi.com](liangjinfeng@youmi.com).

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-nox-0.0.2.tar.gz (4.8 kB view hashes)

Uploaded Source

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