Can you share the views.py that you wrote?
Actually If the page for random set of questions is same for User NOT Logged In and User Logged In, the data you called from database will still showing up.
Actually If the page for random set of questions is same for User NOT Logged In and User Logged In, the data you called from database will still showing up.
On Mon, Aug 24, 2020 at 9:19 PM vipul shinde <vipulshinde127@gmail.com> wrote:
--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 thisOne 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+unsubscribe@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.
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CANV3w%3DYE%3DP6OW4cow0q%3D8uocbUSKoi259CJbRWrJYPo7A51oEw%40mail.gmail.com.
No comments:
Post a Comment