app/django/bin/daily_cleanup.py
author Sverre Rabbelier <srabbelier@gmail.com>
Thu, 26 Feb 2009 16:52:29 +0000
changeset 1517 a467d13e34ea
parent 323 ff1a9aa48cfd
permissions -rw-r--r--
Pass _updateField the entity_properties dict instead of just the value This enables _updateField to change the value in entity_properties if desired. Patch by: Sverre Rabbelier

#!/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')