在生产中,您如何为猎豹提供服务?在
伙计们,你们能分享一下在生产中如何预编译和服务猎豹的设置吗
因为我们不在webpy中编译模板,所以会出现上游超时错误。如果你能分享一个好的最佳实践,那会有帮助的
*
Jeremy wrote: For a production site, I use Cheetah with pre-compiled templates - it's very fast (the templates import especially quickly when python compiled and optimised). A bit of magic with the imp module takes a template name and a base directory (configured in a site-specific config) and loads up that template, taking care of #extends and
import directives as appropriate. I don't use the built-in support for
Cheetah, however. The new template library is also only imported to display the debugerror page
*
可能根据需要自动编译:
这很有效
这就是我用你的代码做的
^{pr2}$包括在给定方法中不工作
这是我得到的错误
相关问题 更多 >
编程相关推荐