简体   繁体   English

Google AppEngine的Python脚本处理程序

[英]Python script handler for Google AppEngine

I am writing an app engine application to fetch url content using urlfetch available in google app engine. 我正在编写一个应用引擎应用,以使用谷歌应用引擎中提供的urlfetch来获取网址内容。

however in the app.yaml file, I have a doubt in script handle 但是在app.yaml文件中,我对脚本句柄有疑问

I have found that some people use script name as myScript.py while some tutorials use myScript.app 我发现有些人使用脚本名称作为myScript.py,而有些人使用myScript.app

what's the difference between the two uses ? 这两种用途有什么区别?

The myScript.py was for the 2.5 runtime, the model for invoking apps with 2.7 runtime normally utilises the myScript.app method. myScript.py用于2.5运行时,用于调用具有2.7运行时的应用程序的模型通常使用myScript.app方法。 Have a look at the age of the tutorials and also what Python runtime they have configured in their app.yaml. 查看教程的时代以及他们在app.yaml中配置的Python运行时。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM