title: How to save data to database at fixed intervals on Django?
body: <p>I'm writing a django survey application and it's required to save votes on a queue structure and at 1 minute intervals save the elements of the queue on database. Thats for save I/O overhead.</p>
  
  <p>Currently I'm saving the votes directly from my votes view:</p>
  
  <pre><code>def vote(request, question_id):
      question = get_object_or_404(Question, pk=question_id)
      selected_choice = question.choice_set.get(pk=request.POST['choice'])
      selected_choice.votes += 1
      selected_choice.save()
      return HttpResponseRedirect(reverse('enqueteapp:results', args=(question.id,)))
  </code></pre>
  
  <p>My problem is that I don't know where I can start the queue and the thread to do what I need to do.</p>
  
  <p>PS: I don't wanna know if there is a better way to do it. I'm required to use the queue stuff.</p>