Can I slow down Django

前端 未结 6 620
轻奢々
轻奢々 2021-02-05 10:12

Simple question really

./manage.py runserver

Can I slow down localhost:8000 on my development machine so I can simulate file uploa

6条回答
  •  不知归路
    2021-02-05 11:03

    You could write a customized upload handler or subclass current upload handler to mainly slow down receive_data_chunk() method in it. Or set a pdb breakpoint inside receive_data_chunk() and manually proceed the uploading. Or even simpler, try to upload some large file.

提交回复
热议问题