HTML : python :: frontend : backend
techiepriyansh (3)

Suppose I have a python script that takes some arguments. Is there a way that I can take these arguments from an HTML form , run the python script and display the output again in HTML

You are viewing a single comment. View All
Highwayman (1537)

You mean a request from a HTML frontend client to a python server? Yes. Just use flask or some other python server framework in the backend and a js fetch from the HTML frontend.

techiepriyansh (3)

@Highwayman Yay!!! That worked! Thanks.
But just one more thing, I saw that it only works when you configure the server to run at .Any specific reason for why that is so ?