Python 2.7 と Google App エンジンを使用しています。Oauth の完了後にユーザーをフォームにリダイレクトするページを作成しました。これは localhost では完全に機能しますが、アプリ エンジンにデプロイすると失敗します。私は何を間違っていますか?
エラーメッセージは「404.That's an error.The requested URL /form was not found on this server.That's all we know.」です。
サーバー ログに /form リクエストがまったく表示されません。
関連するスニペットは次のとおりです。
1.app.yaml
handlers:
- url: .*
script: public.main.app
builtins:
- remote_api: on
- admin_redirect: on
2.main.py
app = webapp2.WSGIApplication([
('/form?$', content.Home),
('/oauthcallback?$', content.CallbackHandler),],
debug=True)
3.content.py fxn for/oauthcallback
....
http = credentials.authorize(http)
self.redirect('/form')