小编PRA*_*RIA的帖子

Google App Engine | Python | 的app.yaml

我是Google App Engine的初学者,也是Python的Web开发人员.在制作了一个基于Python的小应用程序后,我一直在尝试过去6天将其上传到GAE上.下面的"app.yaml"文件给出了之后给出的错误.

APP.YAML(更新)

application: web2py
version: 1
runtime: python27
api_version: 1
threadsafe: false

default_expiration: "24h"

handlers: 
- url: /(?P<a>.+?)/static/(?P<b>.+)
  static_files: applications/\1/static/\2
  upload: applications/(.+?)/static/(.+)
  secure: optional

- url: /favicon.ico
  static_files: applications/welcome/static/favicon.ico
  upload: applications/welcome/static/favicon.ico

- url: /robots.txt
  static_files: applications/welcome/static/robots.txt
  upload: applications/welcome/static/robots.txt

- url: .*
#  script: gaehandler.py         # CGI
#  script: web2py.app # ?
  script: gaehandler.wsgiapp    # WSGI (Python 2.7 only)
  secure: optional

admin_console:
  pages:
  - name: Appstats
    url: /_ah/stats

skip_files: |
 ^(.*/)?(
 (app\.yaml)|
 (app\.yml)|
 (index\.yaml)|
 (index\.yml)|
 (#.*#)|
 (.*~)|
 (.*\.py[co])|
 (.*/RCS/.*)| …
Run Code Online (Sandbox Code Playgroud)

python google-app-engine yaml development-environment app.yaml

6
推荐指数
1
解决办法
3769
查看次数