Run python file on html

Currently I have some Python files which connect to an SQLite database for user inputs and then perform some calculations which set the output of the program. I'm new to Python web programming and I want to know: What is the best method to use Python on the web?

Example: I want to run my Python files when the user clicks a button on the web page. Is it possible?

I started with Django. But it needs some time for the learning. And I also saw something called CGI scripts. Which option should I use?

asked Nov 28, 2016 at 12:56

2

You are able to run a Python file using HTML using PHP.

Add a PHP file as index.php:



Run my Python files

Chủ Đề