我只想在Google应用引擎网站上显示图片。 我是Google应用引擎的新手。 我做app.yaml中和Main.py变化 app.yaml的样子:无法在Google应用引擎网络上看到图片
application: simplegraph-007
version: 1
runtime: python27
api_version: 1
threadsafe: yes
handlers:
- url: /favicon\.ico
static_files: favicon.ico
upload: favicon\.ico
- url: /images
static_dir: static/images
mime_type: image/png
- url: .*
script: main.app
libraries:
- name: webapp2
version: "2.5.2"
Main.py模样。
import webapp2
class MainHandler(webapp2.RequestHandler):
def get(self):
self.response.out.write("""<img src = 'D:\download\rel.png/>""")
app = webapp2.WSGIApplication([
('/', MainHandler)
], debug=True)
我还需要改变什么。 我希望能得到帮助。
谢谢,
检查文件名'脚本:Main.app'或'脚本:Main.py' –