diff -r ebaad720f88b -r 526ebd3988b0 web/lib/django_extensions/jobs/daily/daily_cleanup.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/lib/django_extensions/jobs/daily/daily_cleanup.py Wed Jan 20 12:37:40 2010 +0100 @@ -0,0 +1,15 @@ +""" +Daily cleanup job. + +Can be run as a cronjob to clean out old data from the database (only expired +sessions at the moment). +""" + +from django_extensions.management.jobs import DailyJob + +class Job(DailyJob): + help = "Django Daily Cleanup Job" + + def execute(self): + from django.core import management + management.call_command("cleanup")