On 2/11/06, Ned Batchelder <[EMAIL PROTECTED]> wrote: > I have a repetitive background task I'd like to run in my Django > environment, for example, once a minute. What's the best way to do > this? Currently, I run a cron job that executes a Python script, > imports the Django modules it needs, and does its work. But this means > configuring this cron job on every development machine and server to > have the complete environment. > > Is there a good way to do this sort of thing within Django itself? How > have other people solved this problem?
Hey Ned, That's exactly how I'd recommend doing it. There's no sort of event or scheduling framework within Django itself -- we've always relied on cron to do repetitive tasks. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | chicagocrime.org