django test set delay 5 sec code example
Example 1: python delay
>>> import time
>>> time.sleep(3) # Sleep for 3 seconds
Example 2: python wait for x seconds
import time
x = 1 # Put in whatever seconds you want it to wait
time.sleep(x)
>>> import time
>>> time.sleep(3) # Sleep for 3 seconds
import time
x = 1 # Put in whatever seconds you want it to wait
time.sleep(x)