django-nox-0.0.2
توضیحات
Statistics middleware and analysis tools for django
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | django-nox-0.0.2 |
| نام | django-nox |
| نسخه کتابخانه | 0.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | destino74 |
| ایمیل نویسنده | ljf6670601@gmail.com |
| آدرس صفحه اصلی | https://github.com/destino74/django-nox |
| آدرس اینترنتی | https://pypi.org/project/django-nox/ |
| مجوز | MIT |
Django-Nox
==========
Statistics middleware and analysis tools for django
Installation
------------
To get the latest stable release from PyPi
.. code-block:: bash
$ pip install django-nox
Add all relevant apps to your ``INSTALLED_APPS``
.. code-block:: python
INSTALLED_APPS = (
...,
'django_nox',
)
Add all middleware to your ``MIDDLEWARE``
.. code-block:: python
MIDDLEWARE = (
...,
'django_nox.middleware.TimeLogMiddleware'
)
Don't forget to migrate your database
.. code-block:: bash
./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).
نحوه نصب
نصب پکیج whl django-nox-0.0.2:
pip install django-nox-0.0.2.whl
نصب پکیج tar.gz django-nox-0.0.2:
pip install django-nox-0.0.2.tar.gz