On 7/3/06, Harish Mallipeddi <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm wondering what will be the best way to detect if a view is being > rendered the very first time? Because in one of the apps that I wrote, > if it is the first time, I would launch a scheduler (kronos.py) and > assign the scheduler some periodic task.
I've never used kronos.py before, but might it be easier to query kronos each time, to see if the task is scheduled? In the end, your solution will probably involve querying *something* every time, so it might as well be kronos. It looks like the kronos 'getEvent()' method might do it for you. Other than that, you'd probably have to store your "global variable" in the database, if you want consistency between the running Apache/FCGI instances of your app. Jay P. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---