def logout():
'''
Manually override the logout URL to avoid completely signing the user
out of all Google accounts
'''
if os.getenv('SERVER_SOFTWARE', '').startswith('Google App Engine/'):
return redirect('_ah/logout?continue=https://' + request.host + '/')
return redirect(users.create_logout_url('/'))
评论列表
文章目录