Ciao Luca
I think the problem are the '%' in the datetime string. Have a look here: http://docs.djangoproject.com/en/dev/ref/templates/builtins/ and try this: {{ value|date }} i.e. ... 20 <td>{{ m.dataora|date }}</td> ... respectively. Does it cure the problem? nausikaa On Oct 16, 10:53 am, luca72 <[email protected]> wrote: > hello can you explain how to solve this error: > Exception Type: TemplateSyntaxError at /vis_scar/ > Exception Value: Caught an exception while rendering: Incorrect > datetime value: '%2009-10-15 15:45:59%' for column 'dataora' at row 1 > > He stop at line 17 > > 8 <table> > 9 <thead> > 10 <tr> > 11 <th> Nome File</th> > 12 <th> Data </th> > 13 <th> IP </th> > 14 <th> Utente </th> > 15 </tr> > 16 </thead> > 17 {% for m in tutti %} > 18 <tr class="{% cycle 'pari' 'dispari' %}"> > 19 <td>{{m.nome_file}}</td> > 20 <td>{{m.dataora}}</td> > 21 <td>{{m.indirizzo_ip}}</td> > 22 <td>{{m.utente}}</td> > 23 </tr> > 24 {% endfor %} > 25 </table> > > Thanks Luca --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

