title: Periodic tasks in Django/Celery - How to notify the user on screen?
body: <p>I have now succesfully setup Django-celery to check after my existing tasks to remind the user by email when the task is due:</p>
  
  <pre><code>@periodic_task(run_every=datetime.timedelta(minutes=1))  
  def check_for_tasks():      
      tasks = mdls.Task.objects.all()
      now = datetime.datetime.utcnow().replace(tzinfo=utc,second=00, microsecond=00)
      for task in tasks:
          if task.reminder_date_time == now:
              sendmail(...)
  </code></pre>
  
  <p>So far so good, however what if I wanted to also display a popup to the user as a reminder?</p>
  
  <p>Twitter bootstrap allows creating popups and displaying them from javascript:</p>
  
  <pre><code>$(this).modal('show');
  </code></pre>
  
  <p>The problem is though, how can a celery worker daemon run this javascript on the user's browser?  Maybe I am going a complete wrong way and this is not possible at all. Therefore the question remains can a cronjob on celery ever be used to achieve a ui notification on the browser?</p>