I'm working on a program that utilizes Python scripts that pull information from a MySQL database. The MySQL database is managed from a PHP site interface (so HTML forms and buttons and the such). I have this all set up on a raspberry pi and it works. But I want to add some more functionality.
Specifically I want to be able to execute certain python scripts from the PHP site. I want it to be as simple as a press of a button, literally.
Is this a scenario where I should use Django? I've never used it before but have read about how it connects Python with the web. I found an answer to a similar question but I'm wondering If I need to set up anything special on my apache server: https://stackoverflow.com/a/31811462/5609876
I even made a little picture for a visual representation of my program incase my explanation wasn't good enough: