以下代码:
class Message(db.Model):
content = db.StringProperty()
class Message(webapp2.RequestHandler):
def get(self):
doRender(self,'message.htm')
def post(self):
message = Message()
message.content = self.request.get('content')
message.put();
self.redirect('/view')
给我下面的错误信息:
AttributeError: 'Message' object has no attribute 'put'
我究竟做错了什么?