Jaime Buelta wrote: > When I had to do this kind of tasks, I've added a new management command and > run it from the cron (or manually any time you need it, with params, etc). > You can run it calling > > python manager.py miCommand parameters >
"celery" may seem overkill initially, but works very well for periodic tasks among other things. Once you have it working, it's straightforward to use for all manner of time-consuming stuff you might want to push into the background to keep your http responses timely. http://ask.github.com/celery/introduction.html#periodic-tasks (If you want to run a task manually, you can still wrap it in a management command, or just call it from within ./manage.py shell) At time of writing AFAIK if you want to use it with python 2.5, you have to beware of: http://github.com/ask/celery/issues/closed/#issue/24 - but otherwise it's simple enough to setup (there's a sample initscript in the source package for linux systems) --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---