I've made a Django website, whence I would like to call a Python program that I currently start from the command line.
I imagine doing it by clicking on a link or button.
I know this must be a one-liner, but I'm stumped.
Here is an article from Guido Van Rossum, who created python, on doing this. Essentially, you just want to invoke your main() function from your controller.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With