delay_middleware — Middleware for testing how your app behaves with latency¶
-
class
DelayMiddleware(get_response)¶ Bases:
objectTo use this, you must add the following to your settings:
- Add
django_cradmin.delay_middleware.DelayMiddlewaretoMIDDLEWARE_CLASSES. - Set
DJANGO_CRADMIN_DELAY_MIDDLEWARE_MILLISECONDSto the number of milliseconds delay you want to add to all requests (I.E.: 2000 for 2 seconds).
- Add