title: PeriodicTask with Django + Celery
body: <p>I am trying to do a Periodic task in my project but I can't make it work. In my dev I execute celery like this:</p>
  
  <pre><code>python manage.py celery worker -l info
  </code></pre>
  
  <p>But when I try:</p>
  
  <pre><code>celery -B -l info
  </code></pre>
  
  <p>or</p>
  
  <pre><code>python manage.py celery -B -l info
  </code></pre>
  
  <p>I get a <code>Connection refused error</code>.
  I have also installed <a href="https://github.com/mher/flower" rel="nofollow">flower</a> to monitoring if the task is executed. I have other tasks executen from code, but now I'd like to do a periodical task.</p>
  
  <p>My tasks (that actually works) inherits from <code>celery.task.Task</code> and the Task I want to be periodical from <code>celery.task.PeriodicTask</code>, something like this:</p>
  
  <pre><code>from celery.task import PeriodicTask
  
  TaskToBePeriodical(PeriodicTask):
      run_every = crontab()  # This should make it execute every minute, just for test
      def run(self, **kwargs):
          # Do something awesome...
  </code></pre>