It seems to me that a call to sleep() should block the execution of all Django code in most cases. However, this may depend on the deployment architecture (e.g. gevent, gunicorn, etc.). For example, if you use a server that runs Django threads for each request, then it will not block all code.
In most cases, using something like Celeri would be a much better solution because (1) did not reinvent the wheel and (2) it was tested.
source share