I am making a page so that my python script can run using django which requires 3 inputs. In my app I have made a folder where I write and run the HTML commands with 3 inputs and a submit button which works fine. The python script this webpage will run with the three inputs has already been written but I am not sure where to put them or how to pass in the variables after they have been submitted. I am getting a lot of mixed messages telling me to use urls.py, views.py, or make my own utils.py. Should I make a new file for the script or write it in one of the provided files (admin.py, init.py etc)? How can I pass in those values and then have the script run automatically after? Thanks!
Aucun commentaire:
Enregistrer un commentaire