我正在做一个项目,我需要使用多个html页面来与我的代码交互 比如: 查看索引.html首先:你知道吗
path = os.path.join(os.path.dirname(__file__), 'index.html')
self.response.out.write(template.render(path, template_values))
然后,当我按下注销按钮,程序应该看到这个页码:-你知道吗
path = os.path.join(os.path.dirname(__file__), 'signOut.html')
self.response.out.write(template.render(path, template_values))
问题是程序一次同时查看两个页面,这不是我想要的。你知道吗
你能告诉我怎样才能把它们分开看吗
你需要这样的东西:
您的两个页面将在http://yourapp.appspot.com/和http://yourapp.appspot.com/signout上可用
这假设您的附录yaml正在将两个URL映射到.py文件。你知道吗
相关问题 更多 >
编程相关推荐