python - Google App Engine URL Handler Error While Running -


this app.yml file

application: hello version: 1 runtime: python27 api_version: 1 threadsafe: false handlers: - url: /.*   script: hello.py 

the hello.py located @ same directory app.yml file.

when run app error:

google.appengine.api.yaml_errors.eventerror: unknown url handler type. <urlmap      secure=default      static_files=none      application_readable=none      auth_fail_action=redirect      require_matching_file=none      static_dir=none      redirect_http_response_code=none      http_headers=none      url=/.*      script=none      upload=none      api_endpoint=none      expiration=none      position=none      login=optional      mime_type=none     >   in "c:\users\***\desktop\app\app.yaml", line 8, column 1 2016-03-01 11:36:12 (process exited code 1) 

i thought spacing issue added 2 spaces after script still getting same error.

you need change definition of handler in app.yaml to:

application: hello version: 1 runtime: python27 api_version: 1 threadsafe: false  handlers: - url: /.*   script: hello.app 

pay close attention script: property. should pointing wsgiapplication, example above defined within app variable.


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -