Utpal, it's not pure HTML. It's got some templating in there as well - Jinja2 I think is the default.
Regardless, it reads like Python: if the list exists, open an unnumbered list for every question in the list, create a dot point with the list question. The list question will be a html a link back to the question. End for end list else "no list" end if Cheers L. ------ "The antidote to apocalypticism is *apocalyptic civics*. Apocalyptic civics is the insistence that we cannot ignore the truth, nor should we panic about it. It is a shared consciousness that our institutions have failed and our ecosystem is collapsing, yet we are still here — and we are creative agents who can shape our destinies. Apocalyptic civics is the conviction that the only way out is through, and the only way through is together. " *Greg Bloom* @greggish https://twitter.com/greggish/status/873177525903609857 On 27 March 2018 at 15:11, Utpal Brahma <utpalbrahma1...@gmail.com> wrote: > I am in tutorial 3 of Django.But i am stuck in understanding the below > code.Please heLP me!!! > > > {% if latest_question_list %} > <ul> > {% for question in latest_question_list %} > <li><a href="/polls/{{ question.id }}/">{{ question.question_text > }}</a></li> > {% endfor %} > </ul> > {% else %} > <p>No polls are available.</p> > {% endif %} > > -- > 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 post to this group, send email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/django-users/160290fc-a15a-43f4-b1f1-7cdcb6d5c9b1%40googlegroups.com > . > For more options, visit https://groups.google.com/d/optout. > -- 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 post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAGBeqiNY05tUr%2B2xsFqcsqxfAW0N0Jvw4aBDVi8-OJL_LYoDCA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.