Simple question really
./manage.py runserver
Can I slow down localhost:8000
on my development machine so I can simulate file uploads and work on the look and feel of ajax uploading?
Django is not slow. Instagram was built on it, and all these years later they're still using the core request-response handlers.
Its Object-Relational Mapper (ORM): This is another powerful Django feature that enables developers to interact with the database in a 'Python-like' style. This, again, helps developers accelerate the web development process, especially if they don't have a strong understanding of database languages like SQL.
depending on where you want to simulate such you could simply sleep?
from time import sleep
sleep(500)
On osx or freebds, you can use ipfw
to limit bandwidth on specific ports:
sudo ipfw pipe 1 config bw 1Bytes/s delay 100ms
sudo ipfw add 1 pipe 1 src-port 8000
Do not forget to delete it when you do not need it anymore:
sudo ipfw delete 1
Credit: jaguarcy
For osx there is also free app that will allow this:
http://slowyapp.com/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With