Suggest any document to learn below syntax?

16 views
Skip to first unread message

Utpal Brahma

unread,
Apr 10, 2018, 5:55:10 PM4/10/18
to Django users
<h1>{{ question.question_text }}</h1>
<ul>
{% for choice in question.choice_set.all %}
    <li>{{ choice.choice_text }}</li>
{% endfor %}
</ul>


I got this syntax in
Writing your first Django app, part 3.

Mike Dewhirst

unread,
Apr 10, 2018, 7:20:44 PM4/10/18
to django...@googlegroups.com, Utpal Brahma
On 11/04/2018 7:51 AM, Utpal Brahma wrote:
> <h1>{{ question.question_text }}</h1>
> <ul>
> {% for choice in question.choice_set.all %}
> <li>{{ choice.choice_text }}</li>
> {% endfor %}
> </ul>

Try this ...

https://docs.djangoproject.com/en/2.0/#the-template-layer

> I got this syntax in Writing your first Django app, part 3.
> --
> 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...@googlegroups.com
> <mailto:django-users...@googlegroups.com>.
> To post to this group, send email to django...@googlegroups.com
> <mailto:django...@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/398dae6d-0387-41dc-a8e4-f3485ad1465c%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/398dae6d-0387-41dc-a8e4-f3485ad1465c%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages