Re: Get latest item by many items in a queryset

2011-09-30 Thread Dmitry Kuznetsov
Something like this? backends = [backend1,backend2,backend3] latest_status = Status.objects.filter(backend__in=backends).latest() Regards, Dmitry On Sep 29, 7:36 pm, Colin wrote: > Hi Users, > > So I have a DB that has a list of backends and there properties and I > have a table that gets updat

Re: Run an application periodically on django

2011-08-04 Thread Dmitry Kuznetsov
If you want to run a server-side script every 30 seconds, look into Cron, or Django-Celery. If you want to refresh a webpage every 30 seconds, use Javascript. On Aug 4, 1:12 am, Mohamed Ghoneim wrote: > Hey guys, > > I am new to djnago and I have heard a lot about its powerful capabilities, > so