Pythonで書かれたGoogle Appengineプロジェクトでは、エラーが発生したときに私自身のエラーメッセージを残したいと思います。私はで説明したようにerror_handlersを使用したい: http://code.google.com/intl/nl/appengine/docs/python/config/appconfig.html#Custom_Error_ResponsesGoogle Appengine Python用のapp.yamlでカスタムエラーページを作成する方法
私はdebug = False
でWebアプリケーションを使用するアプリケーションでは、私は自分のコードでエラーを作成するときに、私は、ブラウザから標準500サーバーエラーメッセージが表示されます。
私が作成したカスタムエラーページdefault_error.html
という名前の質問です:このカスタムエラーページを保存するためにはどこ?
ところでこれは私のapp.yaml
コードです:
application: customerrorpage
version: 1
runtime: python
api_version: 1
error_handlers:
- file: default_error.html
handlers:
- url: /good.htm
static_files: static/good.htm
upload: static/good.htm
- url:/
static_files: static/good.htm
upload: static/good.htm
- url: /.*
script: main.py
'BaseRequestHandler'クラスとapp.yamlの使用の関係は何ですか? – Hans