views:

46

answers:

3

I have a django application where i'll like to have a script that i'll run once a day to validate the models in the database, and delete some objects. How cand i make it ? I want something equivalent to rake:task in rails.

A: 

Try this: django-tasks

histrio
A: 

May be celery would be better in this case.

Because as stated in django-tasks page:

Django-tasks is for a different usage from most other tasks frameworks (Celery, Cue...): this is not for numerous, quick, light, tasks, but for few, long, heavy, tasks. Typical usage is to batch process data for each model object, and give information about the processing to the user.

So it depends on the purpose.

dragoon
+1  A: 

Also look at setting up a custom subcommand for your manage.py.

Walter Mundt