Re: Problem to complète the xml template

2012-07-05 Thread nef
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/

Re: Problem to complète the xml template

2012-07-05 Thread bruno desthuilliers
On Wednesday, July 4, 2012 8:12:50 PM UTC+2, nef wrote: > > Hello, > Bonjour > I want to cry a function allowing me to complete a template *. Xml. May I > have a problem with the passage of the object render_to_response. In short > here is my code. In fact, I do not know how to return an obj

Re: Problem to complète the xml template

2012-07-05 Thread Jirka Vejrazka
> Hello, > http://cdm-fr.fr/2006/schemas/CDM-fr.xsd"; language="fr-FR"> > {% if formations %} > > 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 th

Problem to complète the xml template

2012-07-04 Thread nef
Hello, I want to cry a function allowing me to complete a template *. Xml. May I have a problem with the passage of the object render_to_response. In short here is my code. In fact, I do not know how to return an object that can permattre me to complete my template automatically. I am using djan