How to upload and execute a file in django then show the result?

I want to build a web application using Django These are the flow I'm planning to execute:

Page1 - User upload file to be executed using the upload button and then press execute button.

Page2 - execute the Python code and show the result.

i have tried the upload part but i still need help in the execution and the show of the result .

Back to Top