diff gpp/settings/base.py @ 516:beda97542da8

For #194, add a celery beat task for Django & forum cleanup.
author Brian Neal <bgneal@gmail.com>
date Thu, 15 Dec 2011 00:59:32 +0000
parents ae89ba801e8b
children 5171a5e9353b
line wrap: on
line diff
--- a/gpp/settings/base.py	Wed Dec 14 02:41:15 2011 +0000
+++ b/gpp/settings/base.py	Thu Dec 15 00:59:32 2011 +0000
@@ -219,7 +219,11 @@
     "potd": {
         "task": "potd.tasks.pick_potd",
         "schedule": crontab(minute=0, hour=0),
-    }
+    },
+    "cleanup": {
+        "task": "core.tasks.cleanup",
+        "schedule": crontab(minute=0, hour=1),
+    },
 }
 
 #######################################################################