Greg
Greg

Reputation: 2607

Yaml script handlers when porting App Engine app to Python 2.7

I'm porting a Python app from 2.5 to 2.7 on App Engine and I've found the script handlers don't work the same for WSGI endpoints. Specifically, when my endpoint application is defined in a sub-directory, the yaml fails to parse.

- url: /crawl/route/.*
  script: crawl/crawler.app
  login: admin

In Python 2.5 that ".app" extension was ".py"

This works if the script definition does not have a sub-directory. In fact, all app scripts in the root directory work and all app scripts in a sub-directory fail.

Upvotes: 0

Views: 159

Answers (1)

dragonx
dragonx

Reputation: 15143

It's not a path, it's a python object, so use

script: crawl.crawler.app

Upvotes: 1

Related Questions