Google App Engine The url "/" does not match any handlers error

I am trying to run a program from https://github.com/rutherford/nltk-gae because I want to use NLTK in Google App Engine. I copied necessary files to the folder and when I run I get this error "The url "/" does not match any handlers." I think something wrong in my app.yaml configuration. Please help me to find out the problem, thanks.

my python code 在这里输入图像描述

app.yaml

在这里输入图像描述


I changed it but still not working

application: nltkforappengine
version: 0-1
runtime: python27
api_version: 1
threadsafe: true

handlers:
- url: /favicon.ico
  static_files: favicon.gif
  upload: favicon.gif

- url: /nltk.*
  script: nltker.application
- url: /.*
  script: nltker.application


libraries:
- name: numpy
  version: "1.6.1"

There's a handler for '/nltk' (thats what line 12-13 of app.yaml do, supported by the WSGIApplication configuration at the bottom of nltker.py ).

There is no handler specified for '/'.

From a quick glance at the code, it looks like the author's intent is that you use /nltk as a starting point.


you need to type the full url to get it to work ie

127.0.0.1:8080/ntlk

otherwise u get an error

链接地址: http://www.djcxy.com/p/91620.html

上一篇: App Engine Python模块和频道服务

下一篇: Google App Engine网址“/”与任何处理程序错误都不匹配