title: Scheduling Django method with Celery
body: <p>I have this method:</p>
  
  <pre><code>def getExchangeRates(): 
      """ Here we have the function that will retrieve the latest rates from fixer.io """
      rates = {}
      response = urlopen('http://data.fixer.io/api/latest?access_key=c2f5070ad78b0748111281f6475c0bdd')
      data = response.read()
      rdata = json.loads(data.decode(), parse_float=float) 
      rates_from_rdata = rdata.get('rates', {})
      for rate_symbol in ['USD', 'GBP', 'HKD', 'AUD', 'JPY', 'SEK', 'NOK']:
          try:
              rates[rate_symbol] = rates_from_rdata[rate_symbol]
          except KeyError:
              logging.warning('rate for {} not found in rdata'.format(rate_symbol)) 
              pass
      return rates
  
  @require_http_methods(['GET', 'POST'])
  def index(request):
      rates = getExchangeRates()
      fixerio_rates = [Fixerio_rates(currency=currency, rate=rate)
                   for currency, rate in rates.items()]
      Fixerio_rates.objects.bulk_create(fixerio_rates)
      return render(request, 'index.html') 
  </code></pre>
  
  <p>I want to schedule this, let's say, for every day at 9am, except for weekends.</p>
  
  <p>I haven't found some comprehensive tutorial on how to schedule this based on such a specific datetime, also, I don't know if I could schedule this method, or create another method in my <code>tasks</code> file that inherits this one, and runs at any specific date.</p>
  
  <p>I do have the <code>celery.py</code> file in my project root, and the <code>tasks.py</code> file in my app folder.</p>
  
  <p>Or, maybe celery isn't the way to go for this situation?</p>
  
  <p>Any ideas?</p>