简体   繁体   English

适用于Python 2.5的GAE SDK

[英]GAE SDK for Python 2.5

I have an existing app that uses the deprecated Python 2.5 and the deprecated master/slave datastore. 我有一个使用不推荐使用的Python 2.5和不推荐使用的主/从数据存储的现有应用程序。 According to the docs, I must migrate the datastore to HRD before I can upgrade to Python 2.7. 根据文档,在升级到Python 2.7之前,必须将数据存储迁移到HRD。 Before I can migrate my M/S datastore to HRD, I need to do some work on the app and test it using the dev server. 在将我的M / S数据存储迁移到HRD之前,我需要在应用程序上进行一些工作并使用开发服务器对其进行测试。

However, I upgraded to the most recent version of the SDK (1.8.6), and it does not support Python 2.5. 但是,我升级到了最新版本的SDK(1.8.6),它不支持Python 2.5。 Somebody else encountered this problem and learned that the latest SDK that supports Python 2.5 by default is Python SDK 1.7.5. 其他人遇到了此问题,并了解到默认情况下支持Python 2.5的最新SDK是Python SDK 1.7.5。 From where can that be downloaded? 从哪里可以下载? Or, is there a way I can make the SDK 1.8.6 work with Python 2.5? 或者,有没有一种方法可以使SDK 1.8.6与Python 2.5一起使用?

In the 1.8.6 SDK, there's an old_dev_appserver.py that works with Python 2.5. 在1.8.6 SDK中,有一个old_dev_appserver.py与Python 2.5一起使用。 That'll help you along as you migrate. 这将在您迁移时为您提供帮助。

Dave W. Smith gave me the answer but I didn't know how to implement it until I made a discovery that maybe most people already know, But in case it might be helpful to somebody, I will tell it here: 戴夫·史密斯(Dave W. Smith)给了我答案,但是直到我发现也许大多数人已经知道之后,我才知道如何实现它,但是如果它可能对某人有所帮助,我会在这里告诉它:

I do all my GAE/Python/Flex development work in Eclispe, except that I used the launcher for local testing and deploying. 除了使用启动器进行本地测试和部署外,我都在Eclispe中完成了所有GAE / Python / Flex开发工作。 (I am command-line adverse.) I discovered that using the PyDev Eclipse plugin it is easy to set up a "run configuration" (under the PyDev "Run" menu) whereby you can set up command line parameters, etc. and run any python program from within Eclipse. (我对命令行不利。)我发现使用PyDev Eclipse插件很容易设置“运行配置”(在PyDev的“运行”菜单下),从而可以设置命令行参数等并运行Eclipse中的任何python程序。 I now use that facility for running dev_appserver.py (and when needed for my Python 2.5 app, old_app_devserver.py). 现在,我使用该工具来运行dev_appserver.py(以及在我的Python 2.5应用程序需要时,old_app_devserver.py)。 I no longer have a need to use the launcher. 我不再需要使用启动器。 I also set up a PyDev run configuation to deploy my app and performing various appcfg.py functions (vacuum indexes, etc.). 我还设置了一个PyDev运行配置,以部署我的应用程序并执行各种appcfg.py函数(真空索引等)。

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

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