从Google应用程序引擎后端迁移到模块



Google已弃用其Backends API,并告知所有用户迁移到用于GAE项目的Modules API。

更新我的app.yaml并单击应用程序设置>性能页面中的迁移按钮后,我的应用程序仍然会给我这个错误:

WARNING  2014-08-26 13:49:57,888 backends.py:55] The Backends API is deprecated and will be removed in a future release. Please migrate to the Modules API as soon as possible.

为什么GAE仍然将我的应用程序标识为使用Backends API

我的app.yaml文件:

    application: app-name
    version: baseline 
    runtime: python27
    api_version: 1 
    threadsafe: true
    instance_class: F4
    automatic_scaling:
      max_idle_instances: 10
      min_pending_latency: 10ms
      max_pending_latency: 8s
    builtins:
    - deferred: on
    - admin_redirect: on
    - appstats: on
    - remote_api: on
    includes:
    - config/index.master.yaml
    libraries:
    - name: jinja2
      version: latest
    - name: lxml
      version: latest
    - name: webob
      version: latest
    - name: numpy
      version: latest
    - name: webapp2
      version: latest
    - name: ssl
      version: latest
    - name: pycrypto
      version: latest
    skip_files:
    - ^(.*/)?.*.coffee
    - ^(.*/)?.*.scss
    - ^(.*/)?app.yaml
    - ^(.*/)?app.yml
    - ^(.*/)?index.yaml
    - ^(.*/)?index.yml
    - ^(.*/)?#.*#
    - ^(.*/)?.*~
    - ^(.*/)?.*.py[co]
    - ^(.*/)?.*/RCS/.*
    - ^(.*/)?..*
    - ^/docs*

编辑。我的应用程序不是直接导入后端模块,而是通过管理面板库直接导入。每当加载管理面板页面时,都会使用以下脚本处理程序触发该错误:

- url: /googleadmin.*
   script: google.appengine.ext.admin.application 
   login: admin

代码中是否还有后端导入?

从警告来看,你似乎仍在使用"backends.py"

当我们在不同的项目中工作时,我的团队中发生了一件有趣的事情,那就是我们收到了这些对我们甚至没有使用的API的不推荐的调用。似乎在内部,一些"新"API使用了不推荐使用的API,这可能会导致这些错误。我不认为这有风险或危险,但绝对不是人们所期望的行为。

最新更新