在Django中,我怎么让打印语句与Apache WSGI工作? [英] In Django, how do I allow print statements to work with Apache WSGI?
本文介绍了在Django中,我怎么让打印语句与Apache WSGI工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
打印只能在开发服务器。
但是,如果我想它在Apache的工作?万一我忘记它注释掉...我希望能够顺利进行而不会导致错误。
"print" only works in development server. But what if I want it to work in Apache? Just in case I forget to comment it out...I want to be able to go smoothly without causing errors.
(只是打印到什么)
推荐答案
请参阅格雷厄姆邓普尔顿的帖子:
See Graham Dumpleton's post:
- WSGI and printing to standard output
这篇关于在Django中,我怎么让打印语句与Apache WSGI工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文