Hello, I have a question about Django.
Currently, you have run a shell script on the server with subprocess.run on views.py.
Is there a way to print out the progress log of this shell script in real time to html?
django shell-script console
I think what you are looking for is check_output()
. The result of this method will be the Shell Script Progress Log. You can provide it to the client in an appropriate way. (Whether it's polling or websocket...)
© 2024 OneMinuteCode. All rights reserved.