0

I am trying to learn about GAE Task Queues with Python 2.7. The sample code here doesn't work when I try to copy and past it into a 'helloworld.py' app from the Python 2.7 tutorial here.

I think it's because I don't have a 'counter.html' and I gather it is a pretty simple task to make one because it says this:

(In this example, 'counters.html' refers to a Django template that contains the HTML for a page that displays the counter value, and a button to trigger a POST request to the / URL.)

I gather that I should know how to make 'counter.html' but I can't.

Any suggestions?

4

2 回答 2

0

您应该能够很容易地调整留言簿模板示例。

于 2012-05-24T11:09:04.237 回答
0

如果您的代码是从 Google 示例页面复制/粘贴的并且不起作用,则可能是您的 app.yaml 和 queue.yaml 文件设置不正确。症状 = 您的 TQ 调用永远不会到达处理程序。(你确实需要更多的特异性:问题正如尼克所说。) yamls 参考: https ://developers.google.com/appengine/docs/python/config/queue

于 2012-05-24T15:00:29.067 回答