Re: non-event driven method called?

2007-08-23 Thread Graham Dumpleton
On Aug 24, 6:23 am, George Vilches <[EMAIL PROTECTED]> wrote: > James Bennett wrote: > > On 8/23/07, John Menerick <[EMAIL PROTECTED]> wrote: > >> Yeah, I was thinking of running a script in daemon mode, but I would prefer > >> to keep the code inside the django instance to keep everything

Re: non-event driven method called?

2007-08-23 Thread George Vilches
James Bennett wrote: > On 8/23/07, John Menerick <[EMAIL PROTECTED]> wrote: >> Yeah, I was thinking of running a script in daemon mode, but I would prefer >> to keep the code inside the django instance to keep everything simpler. >> simpler as in the same settings for deployment, less hassle

Re: non-event driven method called?

2007-08-23 Thread Tim Chase
> But at the same time, this is *not* something Django is designed to > do. On the other hand, it *is* something cron is both designed to do > and quite good at. Django is not a replacement for the operating > system ;) "uh, yeah...I was trying to rewrite Emacs in Django..." :) -tim

Re: non-event driven method called?

2007-08-23 Thread James Bennett
On 8/23/07, John Menerick <[EMAIL PROTECTED]> wrote: > Yeah, I was thinking of running a script in daemon mode, but I would prefer > to keep the code inside the django instance to keep everything simpler. > simpler as in the same settings for deployment, less hassle deploying on > machines,

Re: non-event driven method called?

2007-08-23 Thread John Menerick
Yeah, I was thinking of running a script in daemon mode, but I would prefer to keep the code inside the django instance to keep everything simpler. simpler as in the same settings for deployment, less hassle deploying on machines, etc John On 8/23/07, Sean Perry <[EMAIL PROTECTED]> wrote: >

Re: non-event driven method called?

2007-08-23 Thread Sean Perry
On Aug 23, 2007, at 12:12 PM, John Menerick wrote: > Inside my django app, regardless of the events of my django- > application, I would like to call a method every minute. Since > Django is heavily event driven, I'm at a loss as how to make this > work. I'm looking for a way to make this

Re: non-event driven method called?

2007-08-23 Thread Joseph Heck
common problem, but a pretty straightforward solution. You can run a script via cron that imports and uses Django bits as you like - we do that quite often. Just make sure you have your environment set up appropriately when you invoke the script - adding in the proper PYTHONPATH and such. -joe

non-event driven method called?

2007-08-23 Thread John Menerick
Inside my django app, regardless of the events of my django-application, I would like to call a method every minute. Since Django is heavily event driven, I'm at a loss as how to make this work. I'm looking for a way to make this happen. Any ideas? John Menerick