# HG changeset patch # User Brian Neal # Date 1376703819 18000 # Node ID 53a56d19568cd6f3490f920d56fbc62d64281151 # Parent 91de9b15b410d831e77ba66fc658338c88635686 For Django 1.5.2; cleanup command is now called clearsessions. diff -r 91de9b15b410 -r 53a56d19568c core/tasks.py --- a/core/tasks.py Thu Aug 15 20:35:02 2013 -0500 +++ b/core/tasks.py Fri Aug 16 20:43:39 2013 -0500 @@ -37,17 +37,17 @@ # import problems when running on the production server (Python 2.5 and # mod_wsgi). Moving them here worked around that problem. - from django.core.management.commands.cleanup import Command as CleanupCommand - from forums.management.commands.forum_cleanup import Command as ForumCleanup + from django.contrib.sessions.management.commands import clearsessions + from forums.management.commands import forum_cleanup - # Execute Django's cleanup command (deletes old sessions). + # Cleanup old sessions - command = CleanupCommand() + command = clearsessions.Command() command.execute() # Execute our forum cleanup command to delete old last visit records. - command = ForumCleanup() + command = forum_cleanup.Command() command.execute()