如何在OpenShift应用程序中调试Django异常
我正在使用Python 2.7.5&&&&& Django 1.6。目前我可以渲染所有的页面,但是一个。
I am deploying a django application with Python 2.7.5 && Django 1.6. Currently I am able to render all pages, but one.
在日志拖尾时,我可以看到的唯一错误是:
The only error I am able to see when tailing the logs is:
GET / woc / HTTP /1.1500 2011 http://myPrivateApp.rhcloud.com/myPrivatePage/ Mozilla / 5.0(X11; Ubuntu; Linux i686; rv:26.0)Gecko / 20100101 Firefox / 26.0
"GET /woc/ HTTP/1.1" 500 2011 "http://myPrivateApp.rhcloud.com/myPrivatePage/" "Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:26.0) Gecko/20100101 Firefox/26.0"
显然,这个日志消息不会告诉我,我找不到任何django相关日志在回馈内。
Obviously this log message doesn't tell me much other than it failed and I cannot find any django related logs within the repos.
在与其他页面一起玩耍之后,我高度怀疑该问题与页面中抛出的异常有关。
After playing around with the other pages, I highly suspect the issue is related to an exception being thrown within the page.
如何在OpenShift上调试Django异常错误?可以通过ssh&&&&&&&&&&使用调试器应用程序如ipdb?
How can I debug Django exception errors on OpenShift? Is it possible to step through executing code in Openshift via ssh && the use of a debugger app such as ipdb?
我真的很想深入了解这个问题,但是没有找到任何明确的方式来使用OpenShift。
I would really like to dig deeper into the issue, but am not finding any clear way to do so with OpenShift.
在Openshift上,您可以键入以下命令:
On Openshift, you can type this command :
rhc tail -a <app-name>
并获取追溯。应该告诉你出了什么问题
and get the traceback . It should tell you what went wrong