app/django/bin/daily_cleanup.py
author Todd Larsen <tlarsen@google.com>
Sat, 22 Nov 2008 10:06:03 +0000
changeset 550 577dbfbeef97
parent 323 ff1a9aa48cfd
permissions -rw-r--r--
Hide the 'scope' property from forms for now, since this is really supposed to be set by "Role context" as determined by logic code in the controller. Patch by: Todd Larsen

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