There is a server script in Python and hosting on imtqy.com. When you load a script on imtqy.com and then open it through a browser, the script is downloaded, not executed. How to make the script run?

    1 answer 1

    No, it is impossible. The script is executed by the interpreter, the interpreter is the same binary as everyone else. imtqy.com does not allow this interpreter to be run at all - it only gives the client (browser) only what is in your repository. Browser .py files are perceived as text (and opened as text) or as multipart data and downloaded as a file.

    If you want some kind of interactivity on the page - there are different engines for static sites (and Github Pages hosts exactly static sites), which take care of saving and loading information from static files. Jekyll , for example.