Answer the question
In order to leave comments, you need to log in
How to embed program output on a page?
Wrote a simple bank deposit calculator in python. Knows how to calculate the amount of interest received by months. The question is, how can I display this data on the page? There is Django, but I just started learning it. At least in which direction to dig, tell me.
Answer the question
In order to leave comments, you need to log in
1. Make a form with buttons and input fields in HTML
2. Create an API for calculating the result from the input data from the page
3. Call this very API from HTML - by submitting the form (if the page is static) or via JavaScript
In general, if the calculator is not too lazy to rewrite in JavaScript, then you can do without a server with Django just by doing calculations in a JS script inside the page
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question