将文本框中的字符串存储到Google App Engine数据存储区
||
是否可以用HTML创建文本框,在其中输入字符串,单击“保存”按钮,将该信息存储到GAE数据存储模型中,并使文本保持显示在文本框中并保存在数据存储中?
HTML位于单独的文件中,只需使用以下命令通过我的main.py文件呈现
class MainPage(webapp.RequestHandler):
def get(self):
template_values = {}
path = os.path.join(os.path.dirname(__file__), \'index.html\')
self.response.out.write(template.render(path, template_values))
我为我的问题尝试的是:
class equipmentBox(db.Model):
equipCode = db.StringProperty()
class equipmentBoxGet(webapp.RequestHandler):
def post(self):
没有找到相关结果
已邀请:
2 个回复
梦话快家腹
赣借