title: Simple cron job in google app engine (python)
body: <p>I need help in implementing a simple cron job in GAE (python). </p>
  
  <p>According to what I understood from appengine documentation, I made a file cron.yaml in the application root directory with the following content:</p>
  
  <pre><code>cron:
  - description: blah blah
    url: /crontask
    schedule: every 1 minute
  </code></pre>
  
  <p>And my app.yaml file has the following content:</p>
  
  <pre><code>application: template-123
  version: 1
  runtime: python27
  api_version: 1
  threadsafe: true
  
  handlers:
  - url: /.*
    script: template-123.app
  </code></pre>
  
  <p>I made all my application code (cron and other parts) into a single file "template-123.py". In the code I implement cron in the following way:</p>
  
  <pre><code>class CronTask(Handler):
  
      def  post(self):
          i=25
          number = Birthday(day = i)
          number.put()
  </code></pre>
  
  <p>And I tell the code to use this class for cron by stating: ('/crontask', CronTask).</p>
  
  <p>However no new entries are uploaded to the datastore (as I believe they should be). And I know that it isn't a problem with the way I'm accessing the data store because when I try to do the same thing manually (upload entries to the data store in my non-cron part of application) it returns with appropriate results.</p>
  
  <p>So I need some guidance as to what might I be doing wrong or missing? Do have to make some more changes to the yaml files or add some other libraries?</p>