Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

Destroy the performance of your site (for testing reasons!) with django-latency!

Project description

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:


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:

    'WAIT_TIME': 5.0

Project details

Release history Release notifications

This version
History Node

History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
django-latency- (1.8 kB) Copy SHA256 hash SHA256 Source None Feb 17, 2013

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page