Google app engine app.yaml url handlers

I am trying to use the Google engine to work with python27.

How to place my script in another folder instead of placing in the same folder with app.yaml?

handlers: - url: /.* script: code/helloworld.app ##### this give error ##### 

error message "ImportError: import by file name is not supported."

+4
source share
2 answers

As Nick Johnson said: Make sure you refer to the package name ( code.helloworld.app ). Also, make sure you have an empty code/__init__.py .

+4
source

If you are using Python 2.7 for multithreading, you need to refer by the package name - code.helloworld.app .

+3
source

Source: https://habr.com/ru/post/1381424/


All Articles