web/lib/django/bin/daily_cleanup.py
author ymh <ymh.work@gmail.com>
Fri, 04 Mar 2011 23:11:22 +0100
changeset 61 efeaf7b1c348
parent 0 0d40e90630ef
permissions -rwxr-xr-x
lucene correction

#!/usr/bin/env python

"""
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.core import management

if __name__ == "__main__":
    management.call_command('cleanup')