1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

Removed daily_cleanup.py script as per deprecation TL.

This commit is contained in:
Ramiro Morales 2013-06-28 13:14:49 -03:00
parent f02a703ca6
commit 57d46bcde3

View File

@ -1,19 +0,0 @@
#!/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).
"""
import warnings
from django.core import management
if __name__ == "__main__":
warnings.warn(
"The `daily_cleanup` script has been deprecated "
"in favor of `django-admin.py clearsessions`.",
DeprecationWarning)
management.call_command('clearsessions')