It’s likely being executed twice because you have debug=True
set for run_server
discussed earlier here:
So set debug=False
to speed it up. As for where to put the slow parts of your code that is up to you!
It’s likely being executed twice because you have debug=True
set for run_server
discussed earlier here:
So set debug=False
to speed it up. As for where to put the slow parts of your code that is up to you!