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."
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.
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 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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With