第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

ImportError-GAE中沒有名為main的模塊

ImportError-GAE中沒有名為main的模塊

千萬里不及你 2021-03-31 21:02:05
在我的Google App Engine應(yīng)用中,出現(xiàn)錯誤ImportError:沒有名為main的模塊轉(zhuǎn)到URL時/foo。我的應(yīng)用程序中的所有文件都位于父目錄中。這是我的app.yaml:application: foobarversion: 1runtime: python27api_version: 1threadsafe: nohandlers:- url: /foo.*  script: main.application- url: /  static_files: index.html- url: /(.*\.(html|css|js|gif|jpg|png|ico))  static_files: \1  upload: .*  expiration: "1d"這是我的main.py:from google.appengine.ext import webappfrom google.appengine.ext.webapp import utilclass Handler(webapp.RequestHandler):    def get(self):        self.response.headers['Content-Type'] = 'text/plain'        self.response.write('Hello world!') def main():    application = webapp.WSGIApplication([('/foo', Handler)],                                         debug=False)    util.run_wsgi_app(application)if __name__ == '__main__':    main()當我更改main.application為main.py或時,我會遇到相同的錯誤main。為什么會發(fā)生此錯誤?
查看完整描述

3 回答

  • 3 回答
  • 0 關(guān)注
  • 170 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號