I've been thinking of this for a LONG time the past few days and can't figure out with my current toolset how to implement this in Django.
What I want is something that can be implemented trivially in Java for example, but how I'd do that on the web is much more difficult
The problem
I want to send data to a HTML template, specific example:
"What is 5 + 50?"
The data must be dynamically generated, so the 5 and 50 are actually randomly generated.
I think I am comfortable doing this part, as I'd simply pass a random variable to a template using the views.py
This is where I do not know how to proceed
I want the user to be able to enter their answer, and have them notified if it correct.
To do this, I'd need to pass the variables from the template back to another view function. I am not sure how to do that, if it is possible at all.
This is how I'm deciding to pursue my projecti dea, and I'm not sure if this is the most efficient way
tl;dr I just wanted data to be randomly generated and calculated using Django