Thanks a lot --- Lachlan Musicman Daniel Hepper and Daniel Hepper
Your answer meant a lot to me.Thank you very much guys. On Tue, Mar 27, 2018 at 1:15 PM, Daniel Hepper <[email protected]> wrote: > Hi, > > I just want to chime in and clarify that while Django does indeed support > Jinja2, it is not the default template language. > > Django comes with its own template language, which is used in the > tutorial, the documentation and probably most articles related to Django. > > The documentation gives a good overview: https://docs.djangoproject. > com/en/2.0/topics/templates/#the-django-template-language > > However, Lachian's interpretation of the template is correct. > > It is worth noting that Jinja2 is actually modeled after the Django > template language, so it is easy to confuse the two on a first glance. > > Cheers, > Daniel > > On Tue, Mar 27, 2018 at 6:17 AM, Lachlan Musicman <[email protected]> > wrote: > >> 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/s >> tatus/873177525903609857 >> >> On 27 March 2018 at 15:11, Utpal Brahma <[email protected]> >> 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 [email protected]. >>> To post to this group, send email to [email protected]. >>> Visit this group at https://groups.google.com/group/django-users. >>> To view this discussion on the web visit https://groups.google.com/d/ms >>> gid/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 [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at https://groups.google.com/group/django-users. >> To view this discussion on the web visit https://groups.google.com/d/ms >> gid/django-users/CAGBeqiNY05tUr%2B2xsFqcsqxfAW0N0Jvw4aBDVi8- >> OJL_LYoDCA%40mail.gmail.com >> <https://groups.google.com/d/msgid/django-users/CAGBeqiNY05tUr%2B2xsFqcsqxfAW0N0Jvw4aBDVi8-OJL_LYoDCA%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Django users" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/django-users/shmTr4Vegoc/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To post to this group, send email to [email protected]. > 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/CAHEnUVXUB1jdrOJLN5FhxdDfduTh4 > 4Mw_xKYE9AOOHfVERkkvA%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAHEnUVXUB1jdrOJLN5FhxdDfduTh44Mw_xKYE9AOOHfVERkkvA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > 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 [email protected]. To post to this group, send email to [email protected]. 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/CAD9OVP1J24Xw3752UZgvVv0dwOVdb50j8gtKRBix_H0HdJp%2B4Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

