I am using Google App Engine with Django. I have started using the
Cron jobs functionality but when the GAE system uses it I keep getting
a 301 error, however the URL which activates the job runs fine. My
setup is below any ideas?
When I call the URL it runs fine. I am stuck.
Cheers
DrG
*** App.yaml
- url: /admin/.*
script: main.py
login: admin
- url: /.*
script: main.py
*** urls.py
### Admin URLS
(r'^admin/cron/(?P<cronjob>[a-zA-Z0-9_.-]+)/$',
'admin.cron.views.cronjobs'),
*** admin.cron.views.cronjobs
def cronjobs(request, cronjob):
strMessage = "Start Job <br />"
strMessage += "Started: %s <br />" % cronjob
if cronjob == "RunFriendlyURL":
strMessage = strMessage + RunFriendlyURL()
strMessage += "Finished: %s <br />" % cronjob
return HttpResponse(strMessage)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---