문제

comments work fine when debug is on but when I turn it off I get "an error occurred" message and it fails to redirect me back to the original page, instead showing the error message at url "www.MYSITE/comments". I'm using django threaded comments on Mezzanine if that helps. I'd just like a way to see the error message at least. Best,

jake

도움이 되었습니까?

해결책

Have you tried using Django Middleware, more precisely the process_exception part? You can write your own middleware class to log the exception or display it in the result page.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top