[英]Python: Edit Google App engine default login page ( _ah/login )
The import statement on Python is from google.appengine.api import users
... The code for retrieving user data is users.get_current_user()
. Python上的import语句
from google.appengine.api import users
。检索用户数据的代码是users.get_current_user()
。 The code for creating a login page is users.create_login_url(self.request.uri)
The sign in url shall be created. 用于创建登录页面的代码是
users.create_login_url(self.request.uri)
应当创建登录URL。 Once the user clicks it, they shall be redirected to this page 用户单击后,应将其重定向到此页面
How do I edit this page? 如何编辑此页面? I would like to customize it.
我想自定义它。 I know I can set my own username & password textfields but then I have to maintain session data.
我知道我可以设置自己的用户名和密码文本字段,但随后必须维护会话数据。 Google have already done this so it's regressive for me to repeat.
Google已经做到了这一点,所以我重复一下是递归的。
The example project is available at Guest Book - web app engine 示例项目可在Guest Book上获得-Web应用程序引擎
The question is how do I edit this page? 问题是如何编辑此页面? or How can I use the users API to store session data?
或如何使用用户API存储会话数据?
发现我无法使用Google API从堆栈溢出答案中进行自定义身份验证
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.