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
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
> 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
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,
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:
>
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
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
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
8 matches
Mail list logo