[英]Calculate page generation time - Django
I'm just wondering if there is a way to do this out of the box. 我只是想知道是否有办法开箱即用。
I need the time it takes to generate a web page within the site templates. 我需要在网站模板中生成网页所需的时间。
Any ideas? 有任何想法吗?
它不是开箱即用的,但Django调试工具栏显示了页面渲染过程的各种元素花了多长时间的统计数据。
我不认为有一个内置,但这个中间件承诺做你想要的: http : //djangosnippets.org/snippets/358/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.