Django

Code

root/django/branches/newforms-admin/django/bin/daily_cleanup.py

Revision 7853, 257 bytes (checked in by brosner, 5 months ago)

newforms-admin: Merged from trunk up to [7852].

  • Property svn:eol-style set to native
Line 
1 #!/usr/bin/env python
2
3 """
4 Daily cleanup job.
5
6 Can be run as a cronjob to clean out old data from the database (only expired
7 sessions at the moment).
8 """
9
10 from django.core import management
11
12 if __name__ == "__main__":
13     management.call_command('cleanup')
Note: See TracBrowser for help on using the browser.