title: How to schedule a task in django?
body: <p>I have a django app which will take backup from mysql depends on the given parameter.
  I have a view which will get the user parameters from a form.The following are the parameters:</p>
  
  <p>1.mysql username</p>
  
  <p>2.mysql password</p>
  
  <p>3.database name</p>
  
  <p>4.backup path </p>
  
  <p>Now I'll take the parameters and give it as arguments to a function I wrote which will take take the mysql backup.Now I need to work this as a cronjobs kind of thing with celery or some other similar to that.
  this is my view:</p>
  
  <pre><code>def home(request):
      if request.method == 'POST':
         form = myform(request.POST)
         if form.is_valid():
               mysqlusername = form.cleaned_data['mysqlusername']
               mysqlpassword = form.cleaned_data['mysqlpassword']
               database_name = form.cleaned_data['database_name']
               backuppath    = form.cleaend_data['backuppath']
  
               backupfunction(mysqlusername, mysqlpassword, database_name, backkuppath)
       else: 
              form = myform()
  
   def backupfunction(mysqlusername, mysqlpassword, database_name, backuppath):
             (code to take backup)
  </code></pre>