python - Where to put the custom error page on Google App Engine -


i add custom error page on gae service.

from document , doesn't mention put error page.

here app.yaml file:

handlers: - url: /static   static_dir: static  - url: .*   script: mega_jav.wsgi.application  error_handlers: - file: error_default.html  - error_code: over_quota   file: error_over_quota.html 

and put both error_default.html , error_over_quota.html in templates folder.

it doesn't work.

where should put error page into? or can modify app.yaml file make works?

thank much.

i suggest read docs https://cloud.google.com/appengine/docs/python/config/appconfig?hl=en#python_app_yaml_custom_error_responses

it's pretty clear, error handler referers file not static resource (in fact there explicit warning not make file overlap static handlers (i raised issue docs in 2010 didn't note fact, causing deployment problems - https://code.google.com/p/googleappengine/issues/detail?id=3759)

warning: make sure path error response file not overlap static file handler paths.

the page error handler deployed in code base.

and has nothing templates. though it's path in templates. purely static html/text served if there uncaught error, putting in templates source of confusion it's not template.

the simplest place in root of project. file directive relative path not handler


Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

json - Gson().fromJson(jsonResult, Myobject.class) return values in 0's -