gpt4 book ai didi

python - Webapp2重定向404错误

转载 作者:太空宇宙 更新时间:2023-11-04 05:52:18 24 4
gpt4 key购买 nike

我在使用重定向功能时遇到了问题。当我用 self.redirect("/index.html") 调用它时,服务器转到 http://localhost:10080/index.html 并警告 404 页面不找到了。

日志:

HTTP/1.1"304 -
INFO 2015-04-12 12:32:39,029 module.py:737] 默认值:“POST/subscribe HTTP/1.1” 302 -
INFO 2015-04-12 12:32:39,046 module.py:737] 默认值:“GET/index.html HTTP/1.1” 404 154
INFO 2015-04-12 12:32:39,223 module.py:737] 默认值:“GET/favicon.ico HTTP/1.1” 304 -
INFO 2015-04-12 12:32:39,296 module.py:737] 默认值:“GET/favicon.ico HTTP/1.1” 304 -

最佳答案

重定向接受一个 URL。您可能想要 self.redirect("/") 但不知道您的 URL 映射,这只是一个猜测。

关于python - Webapp2重定向404错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29591189/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com