【发布时间】:2014-03-18 20:23:50
【问题描述】:
已经成功工作了 4 个小时,通过调用各种 URL 返回代码/文本。
在过去的一个小时里,现在一切都重新路由到我设置的旧错误路由。文件中没有其他内容:
from bottle import route, run
@route("/hello")
def hello():
return "Hello"
run(host='localhost', port=8080)
正在返回:
Nothing here. Redirecting you to the login page!
有: - 关闭 IDLE 和 .py 文件 - 删除了项目目录中的bottle.pyc - 多次清除所有浏览器数据,包括 Firefox 和 Chrome - 复制 .py 文件(到同一目录)并从那里运行 IDLE
知道为什么它会加载我一小时前删除的详细信息吗?
问候
【问题讨论】:
-
当使用旧代码在后台运行 python 进程时,我看到过这样的问题。检查任何相关的 python 进程并关闭它们。
标签: python google-chrome firefox caching bottle