• Hello Everyone,

    I’m new to wordpress. I have a webapp written in matlab and compiled to a python package. I use it in a local server that’s is connected to the interent with a Django project.
    I want to move the functionailty to wordpress I basically need:

    1. users choose some options that will be sent to my local machine.
    2. users receieve output variables sent by the machine.
    3. the wordpress site uses these variables to plot graphs.

    Any idea how can I do that?

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    I don’t know much about python but i think I can answer anyway. Scripts like python, perl, whatever, are executed on servers through the CGI (common gateway interface). I’m assuming some initial .py script would import your package modules to get things started, but I don’t know what I’m talking about beyond basic python scripts ??

    You might need to configure your server to execute python through CGI, but there’s a decent chance it is already configured. If so, install your package files in the server’s cgi-bin folder. You can start your initial .py script from a browser by requesting the file over HTTP. Or use the WP_Http class to make a HTTP GET request to the same file to have WP receive script output instead of the browser.
    https://stackoverflow.com/questions/26829387/easiest-way-to-run-python-script-from-apache

Viewing 1 replies (of 1 total)
  • The topic ‘How move local python app to wordpress’ is closed to new replies.