Slows down Django's responses to clients.
Add Django-Slowdown to your MIDDLEWARE and slow the response time of every request.
Sometimes you need to slow things down during development to get a realistic feel for the user experience in production.
This package will help you develop better UX Flow.
When the backend loads too fast during development it is easy to forget to:
- Add a spinner during loading.
- Disable buttons to prevent double form submit.
- Add simple animations and transitions.
- Load as you scroll.
- Look at your site as content loads.
- etc...
This package has no listed dependencies.
Works with Django>=1.10
run setup.py (download/clone the repo and run)
python setup.py
with pip (not on PyPI yet)
pip install git+https://github.com/michaelwayman/django-slowdown
MIDDLEWARE = [
...
]
if DEBUG is True:
MIDDLEWARE.append('slowdown.middleware.SlowDownMiddleware')
in settings.py
# Number of seconds to slow down each request
SLOW_DOWN = 0.5