我想使用 python/webapp2 开发一个应用程序,这是托管在 Azure 云中的 SQL Azure 数据库所必需的。如何将 python 连接到 SQL Azure?
我想使用HTTP PUT方法,将数据发送到我的谷歌应用引擎应用程序,任何好的例子?我从谷歌找不到任何东西.
而我的以下示例也无效.
import webapp2
class MainHandler(webapp2.RequestHandler):
def put(self):
self.response.write('test put')
app = webapp2.WSGIApplication([
(r'/test/(.*)', MainHandler)
], debug=True)
Run Code Online (Sandbox Code Playgroud)
我收到了这个错误.
TypeError: put() takes exactly 1 argument (2 given)
Run Code Online (Sandbox Code Playgroud)