django应用程序使用的解释器

时间:2022-11-30 20:45:07

I have hosted my django application with apache and mod_python. When i was going through the mod_python documentation, I found that there is a way to know under which interpreter my application is running (By using req.interpreter).

我用apache和mod_python托管了我的django应用程序。当我浏览mod_python文档时,我发现有一种方法可以知道我的应用程序在哪个解释器上运行(通过使用req.interpreter)。

I tried to check that in django, by checking request object. But I couldn't figure out(request.interpreter doesn't exist).

我试图通过检查请求对象在django中检查它。但我无法弄清楚(request.interpreter不存在)。

Is there a way to get interpreter name in django?

有没有办法在django获得翻译名称?

1 个解决方案

#1


from mod_python import apache
apache.log_error("INTERPRETER %s" % apache._interpreter)

Then check the Apache error log file.

然后检查Apache错误日志文件。

#1


from mod_python import apache
apache.log_error("INTERPRETER %s" % apache._interpreter)

Then check the Apache error log file.

然后检查Apache错误日志文件。