Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

google app engine app.yaml url handlers

Im trying google app engine with python27.

How do I place my script in a different folder instead of placing under same folder with the app.yaml?

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

error message "ImportError: Import by filename is not supported."

like image 675
Peter Avatar asked Nov 16 '11 05:11

Peter


People also ask

What is handlers in app yaml?

The handlers element is a required element in the app. yaml configuration file. The element provides a list of URL patterns and descriptions of how they should be handled. App Engine can handle URLs by executing application code, or by serving static files uploaded with the code, such as images, CSS, or JavaScript.

What is an entry point in yaml file?

For App Engine the entrypoint is specified in the app. yaml file, the command present in the entrypoint field will be included in the entrypoint of your app's Dockerfile, meaning that it is the one that will tell how the application has to be started when you are deploying it.

What is use of yaml file?

What is YAML used for? One of the most common uses for YAML is to create configuration files. It's recommended that configuration files be written in YAML rather than JSON, even though they can be used interchangeably in most cases, because YAML has better readability and is more user-friendly.

What are the key features in Google App Engine application environment?

GAE lets users record data and run diagnostics on applications to gauge performance. Security features. GAE enables users to define access policies with the GAE firewall and managed Secure Sockets Layer/Transport Layer Security certificates for free. Traffic splitting.


1 Answers

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

like image 112
Matt Cooper Avatar answered Oct 07 '22 03:10

Matt Cooper