ProtoRPC hello アプリをセットアップしましたが、機能しません。これを使用して投稿しています
$.ajax({url: "http://wordninjabackend.appspot.com/hello",
type: 'POST',
contentType: 'application/json',
data: "{ my_name: Bob }",
dataType: 'json',
success: function(response) {
// The response is { hello: “Hello there, Bob!” }
alert(response.hello);
}
});
そして私は得ています:405 Method Not Allowed
app.yaml
application: wordninjabackend
version: 1
api_version: 1
runtime: python
handlers:
- url: .*
script: main.py
わかりました、それはアプリ エンジンの python です。これは単なるサンプル プログラムなので、サーバーへの投稿に何か問題があるに違いありません