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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-nox-0.0.2.tar.gz.
File metadata
- Download URL: django-nox-0.0.2.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f1858d994f31fd9ab286cd7effd1007420d4b0386d89baf1da327454cf65d3e4
|
|
| MD5 |
3cf7600fc051ff01f0053eaff2083cdc
|
|
| BLAKE2b-256 |
442e1a11b94ab606f0584118c207448e30f7ed146932c2527fe98e6c3e384171
|