That sounds interesting.  As I am new to Django, I never really gave
putting the logic in the model, although I did happen to read a little
about model methods yesterday.

Would you mind making some of your code available?  I'd be interested
in seeing your approach.

Darren

On Fri, May 28, 2010 at 12:08 AM, Kenneth Gonsalves <law...@au-kbc.org> wrote:
> On Friday 28 May 2010 10:20:55 darren wrote:
>> Needing to get this done, I went with SQL.  The sql seems rather
>> inefficient.  But, my data set will be rather small.  I posted what I
>> went with on Pastebin:  http://pastebin.com/VmiYNXan (good for 24
>> hrs).
>>
>> I don't have much data loaded (just one tournament).  But, you can see
>> the resulting table of data here: rankintornadoes.com.
>>
>> I would still like to know if this would be the recommended Django
>> way.  Any advice would be welcome.
>>
>
>
> interesting - although not directly relevant to what you are asking, I am
> doing something similar with golf tournaments, and finally found the best
> approach was to put most of the scoring and statistics in the models
> themselves. That was painful to do, but now I can generate practically
> anything I want from the templates themselves. Like a player model knows it's
> statistics ... I mostly use pure python for the calculations and periodically
> pickle and save the results for faster access. (please ignore this if it
> sounds like irrelevant rambling)
> --
> Regards
> Kenneth Gonsalves
> Senior Associate
> NRC-FOSS at AU-KBC
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-us...@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.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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.

Reply via email to