I have a problem with my Django application.
What I want to do, in theory, is simple, but I'm not getting it. I am working with "CLASS BASED VIEWS". What I want to do is the following, I intend to have a page with my form, so when the user clicks on the button to submit the information Django has to perform some mathematical calculations with the information that was on the form and, after calculating everything, should redirect the user to a new page with the result of the calculations.
Would someone give me a light on how to do this? Below is a graphic example of the process.
Algorithm:
- Capture information using form - VIEW 01 / TEMPLATE 01
- Perform some mathematical calculations with submitted information
- Show results on another page - VIEW 02 / TEMPLATE 02