Why does the Google App Engine warn me 'file referenced by handler not found : dailybasic.py' again and again?

家住魔仙堡 提交于 2020-01-07 06:28:31

问题


I'm coding with the GAE in python, and I tried to make two script files. So I make the app.yaml like this:

application: mathgirlna
version: 1
runtime: python
api_version: 1

handlers:
- url: /static
  static_dir: static

- url: /dailybasic/.*
  script: /dailybasic.py
  login: admin

- url: /.*
  script: main.py

And when I see the logs, it says 'file referenced by handler not found : dailybasic.py'. I have no idea how the app.yaml have to be written.

Here's my file tree:

  • static
    • index.css
  • app.yaml
  • index.yaml
  • cron.yaml
  • index.html
  • main.py
  • dailybasic.py

I'm also hesitating with this tree. Should I move these files?

And last, I've not installed the python library 'ssl'. Could it be a reason of this error?


回答1:


Remove the '/' in script: /dailybasic.py.

- url: /dailybasic/.*
  script: dailybasic.py
  login: admin


来源:https://stackoverflow.com/questions/7365084/why-does-the-google-app-engine-warn-me-file-referenced-by-handler-not-found-d

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!