From 6028d0c0089f7ce5165c4057a43ca79d444a996f Mon Sep 17 00:00:00 2001 From: Stephen McDonald Date: Mon, 21 May 2012 22:27:03 +1000 Subject: [PATCH] Added some more notes around twitter cron jobs. --- docs/deployment.rst | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/deployment.rst b/docs/deployment.rst index 3b75555c60..51de4d9bc1 100644 --- a/docs/deployment.rst +++ b/docs/deployment.rst @@ -106,10 +106,13 @@ Twitter Feeds ============= If Twitter feeds are implemented in your templates, a cron job is -required that will run the following management command:: +required that will run the following management command. For example +if we want the tweets to be updated every 10 minutes:: - $ python manage.py poll_twitter + */10 * * * * python path/to/your/site/manage.py poll_twitter This ensures that the data is always available in the site's database when accessed, and allows you to control how often the Twitter API is -queried. +queried. Note that the fabric script described earlier includes +features for deploying templates for cron jobs, which includes the +job for polling twitter by default.