Why does the Google App Engine warn me 'file r

2019-08-30 06:48发布

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条回答
时光不老,我们不散
2楼-- · 2019-08-30 06:58

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

- url: /dailybasic/.*
  script: dailybasic.py
  login: admin
查看更多
登录 后发表回答