【发布时间】:2015-04-12 15:34:07
【问题描述】:
我在使用重定向功能时遇到问题。当我用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] default: "POST /subscribe HTTP/1.1" 302 -
INFO 2015-04-12 12:32:39,046 module.py:737] default: "GET /index.html HTTP/1.1" 404 154
INFO 2015-04-12 12:32:39,223 module.py:737] default: "GET /favicon.ico HTTP/1.1" 304 -
INFO 2015-04-12 12:32:39,296 module.py:737] default: "GET /favicon.ico HTTP/1.1" 304 -
【问题讨论】:
-
表示你的路由中没有/index.html,或者路由配置错误
标签: python google-app-engine redirect webapp2