【发布时间】:2014-07-27 04:02:55
【问题描述】:
我使用PyCharm创建了一个应用程序,项目目录由以下内容组成:
My Project
______main.py
______app.yaml
______templates
______html
_____js
__________profilePage.js
__________other .js files
_____images
_____css
_____index.html
_____profilePage.html
还有app.yaml:
application: my app id
version: 1
runtime: python27
api_version: 1
threadsafe: yes
handlers:
- url: /favicon\.ico
static_files: favicon.ico
upload: favicon\.ico
- url: /js/(.*\.js)
mime_type: application/javascript
static_files: js/\1
upload: js/(.*\.js)
- url: /images
static_dir: images
- url: .*
script: main.app
- url: /css
static_dir: css
- url: /html
static_dir: html
libraries:
- name: webapp2
version: "2.5.2"
我尝试使用 Google App Engine Launcher 将应用程序部署到 Google 应用程序引擎并成功部署,但它重定向到我在 main.py 中的 MainHandler,我自定义设计为仅打印“hello world”。我如何获得我的应用程序改为显示 index.html 的内容?
【问题讨论】:
-
如果不查看您的 app.yaml 的内容,我们将无法告诉您
-
我现在才包括在内。
标签: jquery python google-app-engine jquery-mobile