我是谷歌应用引擎的初学者,并试图找出如何创建其他页面的链接。就像用户登录后一样,我希望有链接按钮可以将用户重定向到我创建的其他页面。非常感谢你
答案 0 :(得分:2)
您是否已经了解如何创建页面?如果是这样,那么页面之间的链接就是基本的HTML:
<a href="/path/to/some/page">link text</a>
答案 1 :(得分:1)
使用python创建指向Google应用引擎中其他网页的链接:
例如:hyperlink:<a href="/addproduct">
其中/addproduct
引用.py文件中类的名称,以下是.py文件中addproduct
类的定义方式
class addproduct(webapp2.RequestHandler):
def get(self):
template = JINJA_ENVIRONMENT.get_template('adminaddproduct.html')
self.response.write(template.render())
答案 2 :(得分:0)