templates: if and static tags incompatible?

2014-09-29 Thread chansonsyiddish
Hello, I've got a small problem: here is the code in my template: {% if p.fleches %} %}" > {% endif %} and the django development server tells me: Django Version: 1.4.5 Exception Type: TemplateSyntaxError Exception Value: Invalid block tag: 'static', expected 'elif',

Re: function to create objects in a given model

2014-05-21 Thread chansonsyiddish
Thanks, Tom, I'm not sure I need to use signals altogether, as I know when a Song is added. If I make a method in the Song model, I suppose I can import the model and run it in the shell? Or is there a way I could run it directly from the admin site? Hélène On 21/05/2014 17:15, Tom Lockh

Re: function to create objects in a given model

2014-05-21 Thread chansonsyiddish
Thanks a lot, Tom, I think this is just what I need, I will try it asap and see which is better, between the two solutions. Regards, Hélène On 21/05/2014 19:35, Tom Lockhart wrote: On 2014-05-21, at 9:15 AM, chansonsyiddish <mailto:chansonsyidd...@gmail.com>> wrote: Thanks, Tom,

Re: website statistics

2014-05-21 Thread chansonsyiddish
Thanks for your answer, Avraham, I will look into the logfile to see if I can use that. I don't need any "pretty" display, just plain visitors data, and their comportement while they visit the website. Is there someone else who'd have already done this sort of things, managing directly the sta

Re: website statistics

2014-05-21 Thread chansonsyiddish
Thanks for the suggestion anyway... other ideas? Hélène On 21/05/2014 20:23, Andreas Kuhne wrote: I would use google analytics for that. Any reason why you are not using google analytics? Regards, Andréas 2014-05-21 20:15 GMT+02:00 chansonsyiddish <mailto:chansonsyidd...@gmail.com>

Re: website statistics

2014-05-22 Thread chansonsyiddish
Thanks for all the answers! -- 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+unsubscr...@googlegroups.com. To post to this group, send email to djang