Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
阅读 pylons 文档我确实了解 websetup:setup_app 仅在应用程序首次通过粘贴脚本设置时才被调用。但是,我现在发现,每次应用程序启动时都会调用 setup_app。调试代码,这种行为似乎是正确的,因为在 appinstall.setup_config 中加载了模块(作为 PRJ.websetup)并且由于它具有 setup_app 属性,因此调用了该函数。
你能为我指出正确的方向吗?
好吧,我错了。websetup 由设置脚本在执行测试之前使用。
控制器为测试模块进行导入,然后调用 setup_app。
谢谢!。