I'm building a quiz app in which I'm storing questions in the database by
creating a model class. I am retrieving a random question set for each user
from the database and then rendering them on an HTML page. The problem is
after logging a user in, a random set of questions appears but that random
set is lost after refreshing the page.
How do I solve this
One thing that I thought was retrieving the object set in another
view....say after logging a user in and passing it as a dictionary to
another view.
But I can't find the syntax or any function (if it exists). Please help.
I'm using django 3.1 and MySQL as my database

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CANE4xcuDmZCAaB4pzTqvH1d2eGf2b12%2BBPwN90e5_hmK%3DUBeQw%40mail.gmail.com.

Reply via email to