django-latency-0.0.1.1
توضیحات
Destroy the performance of your site (for testing reasons!) with django-latency!
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | django-latency-0.0.1.1 |
| نام | django-latency |
| نسخه کتابخانه | 0.0.1.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Kevin Mooney |
| ایمیل نویسنده | kmooney@gmail.com |
| آدرس صفحه اصلی | http://pypi.python.org/pypi/django-latency/ |
| آدرس اینترنتی | https://pypi.org/project/django-latency/ |
| مجوز | LICENSE.txt |
==============
django-latency
==============
django-latency is a django application that only contains middleware to simulate network
latency on your local machine. It causes your views to take several seconds to return.
This helps you identify client-side code that relies on low-latency server side code,
which is generally an anti-pattern.
Like a runner training with weighted shoes, django-latency lets you feel the pain of
client-server dependencies.
Set Up
=================
Setting up django-latency is easy. After it is installed in your environemnt and on
your path, simply add the middleware class to your MIDDLEWARE_CLASSES list::
MIDDLEWARE_CLASSES = (
...
'latency.middleware.LatencyMiddleware',
...
)
django-latency optionally accepts a settings variable called LATENCY_MIDDLEWARE. Currently,
LATENCY_MIDDLEWARE is a dictionary whose only key is "WAIT_TIME," a floating point value.
For example::
LATENCY_MIDDLEWARE = {
'WAIT_TIME': 5.0
}
نحوه نصب
نصب پکیج whl django-latency-0.0.1.1:
pip install django-latency-0.0.1.1.whl
نصب پکیج tar.gz django-latency-0.0.1.1:
pip install django-latency-0.0.1.1.tar.gz