diff options
Diffstat (limited to 'webapp/django/bin/daily_cleanup.py')
-rw-r--r-- | webapp/django/bin/daily_cleanup.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/webapp/django/bin/daily_cleanup.py b/webapp/django/bin/daily_cleanup.py new file mode 100644 index 0000000000..c9f4cb905c --- /dev/null +++ b/webapp/django/bin/daily_cleanup.py @@ -0,0 +1,13 @@ +#!/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') |