问题
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