python - 路线在生产中被破坏,但在 Pyramid 开发中未被破坏

标签 python debugging routes pyramid

我有一个特定的路由(“service”和“/service”)在生产环境中(在 Apache 2 和 mod_wsgi 下)不起作用(它们触发 NotFound View )。

但是,在开发过程中它们工作得很好。

我可以做什么来调试这个问题?我尝试添加另一个类似的路线(引发配置错误)。我尝试在development.ini 文件下运行它(除了日志记录之外没有任何更改)。

最佳答案

您可以尝试使用 Pyramid 的 notfound 调试输出来收集生产配置和开发配置之间的差异:

http://docs.pylonsproject.org/projects/pyramid/en/1.3-branch/narr/environment.html#debugging-not-found-errors

关于python - 路线在生产中被破坏,但在 Pyramid 开发中未被破坏,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10359548/

相关文章:

php - fatal error : Uncaught Error: Call to undefined function is_product()

python - 获取URL子子域

python - openssl,python请求错误: "certificate verify failed"

linux - Gdb 在自修改代码中切换断点

c# - MVC 路由与授权/授权标签

Angular 2路由订阅变化检测

zend-framework - 如何优雅地更改 zend Controller 名称

python - PyQT QLineEdit 边框颜色

python - 使用 ThreadPoolExecutor 时 Django ORM 泄漏连接

python - 不带参数传递 Python 函数