Django

Code

root/django/trunk/django/bin/daily_cleanup.py

Revision 7844, 257 bytes (checked in by mtredinnick, 5 months ago)

Fixed #5522 -- Moved make-messages, compile-messages and daily-cleanup into django-admin.py.

They are now called "makemessages", "compilemessages" and "cleanup". This is
backwards incompatible for make-messages.py and compile-messages.py, although
the old executables still exist for now and print an error pointing the caller
to the right command to call.

This reduces the number of binaries and man pages Django needs to install.

Patch from Janis Leidel.

  • 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.