简体   繁体   English

轻松完成从App Engine上的Python 2.5到2.7的迁移

[英]Migrating from Python 2.5 to 2.7 on app engine with minimal effort

I have some "old" GAE Python 2.5 applications, with a lot of code. 我有一些“旧的” GAE Python 2.5应用程序,其中包含很多代码。 This year we have to (goolge says) migrate to Python 2.7. 今年,我们必须(goolge说)迁移到Python 2.7。 I never touched the software for the last two years. 最近两年我从未接触过该软件。 The apps run fine without any administration. 应用无需任何管理即可正常运行。 Some applications still use the Master/Slave datastore, which will be migrated first. 某些应用程序仍使用“主/从”数据存储,将首先对其进行迁移。

This software uses webapp and Jinja and no other external libraries besides SDK 1.7.2 (2012). 该软件使用webapp和Jinja,除了SDK 1.7.2(2012)外,不使用其他任何外部库。

The scenario: Keep webapp / CGI (do not change the code) and only change this yaml: 场景:保留webapp / CGI(不更改代码),仅更改此yaml:

application: example
version: 1
runtime: python
api_version: 1

To: 至:

application: example
version: 2
runtime: python27
api_version: 1
threadsafe: false

And testing the applications with the new Python 2.7. 并使用新的Python 2.7测试应用程序。

Is this the minimal effort scenario for migrating 2.5 applications to 2.7? 这是将2.5个应用程序迁移到2.7的最省力的方案吗?

是的,这是您的最低要求,但是您应该阅读Migrate到Python 2.7文档,并确保覆盖了所有要点。

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

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