I am using flask but i wanted to create a form that can pass variables to another python script that will run when a user clicks submit. Can anyone point me to any examples of this? I have been searching for some kind of example of this.
Asked
Active
Viewed 1,219 times
0
-
You can use `os.system("python blah.py")` to run another program in your flask program – whackamadoodle3000 Sep 28 '17 at 23:23
-
How would this work with passing arguments from a form? – Max Powers Sep 28 '17 at 23:24
-
When the arguments come, you can use a request to get the arguments, and then in that function, you can run another program – whackamadoodle3000 Sep 28 '17 at 23:26