Hello, Thank you for your help. I have solved my problem. As I did not need a loop because there is just an object. My mistake was at my query that did not return objects. Thank you for your response
On Thursday, July 5, 2012 7:42:06 AM UTC, JirkaV wrote: > > > Hello, > > http://cdm-fr.fr/2006/schemas/CDM-fr.xsd" language="fr-FR"> > > {% if formations %} > > <cdm:contacts> > > <cdm:contactData> > > Hi there, > > you probably want to follow your {% if formations %} statement with: > {% for formation in formations %} > > Check Django template documentation again - you're moving along the > right path, but your template is missing the loop across individual > formations. > > HTH > > Jirka > -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/xS4EiBSaJvQJ. 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.