2007-01-03 04:39:30 +08:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
2006-09-26 21:08:16 +08:00
|
|
|
"""
|
|
|
|
Daily cleanup job.
|
2005-07-13 09:25:57 +08:00
|
|
|
|
2006-09-26 21:08:16 +08:00
|
|
|
Can be run as a cronjob to clean out old data from the database (only expired
|
|
|
|
sessions at the moment).
|
|
|
|
"""
|
2005-07-13 09:25:57 +08:00
|
|
|
|
2008-07-06 14:39:44 +08:00
|
|
|
from django.core import management
|
2005-07-13 09:25:57 +08:00
|
|
|
|
|
|
|
if __name__ == "__main__":
|
2008-07-06 14:39:44 +08:00
|
|
|
management.call_command('cleanup')
|