Thank you all! I don't see the line "New in Django Development version."
On Dec 27, 10:44 pm, Tsung-Hsien <jasoniem9...@gmail.com> wrote: > Hi, > I want to use {% elif %} > my template: > {% if bookmark.hours %} > {{ bookmark.hours }} hours ago > {% elif bookmark.days %} > {{ bookmark.days }} days ago > {% elif bookmark.months %} > {{ bookmark.months }} months ago > {% else %} > {{ bookmark.years }} years ago > {% endif %} > > show error: > Invalid block tag: 'elif', expected 'else' or 'endif' > > It can work without elif, if use if...else loop. > > my django version is 1.31 > > how to solve this? > thanks!! -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.