how ‘question’ is getting used as object name in index.html,question.html templates
How 'question' is getting used as object name in index.html,question.html templates
Hello @avin99, if you have noticed we are passing question_list as the list of all the questions and now we are iterating over every object inside this. While iterating we are using question as an object of question_list.
{% for question in question_list %}
So, using this we are considering question as an object and so using all its attributes and the functions.
I hope it is clear to you but in case you face some issue or doubts feel free to reach me out.