1

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

Jake
  • 733
  • 2
  • 7
  • 18
  • Could you explain a little more, what is a "comment" what apps you have, etc... – PepperoniPizza Feb 06 '13 at 15:34
  • 1
    Sorry I thought I did, but again, I'm using django threaded comments (http://code.google.com/p/django-threadedcomments/) via Mezzanine (http://mezzanine.jupo.org/). If you need any more info let me know specifically what you need and you got it (I'm new at this!) – Jake Feb 06 '13 at 16:44
  • 1
    just letting me know how to get error messages from a site with debug off would be great – Jake Feb 06 '13 at 16:46

1 Answers1

0

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.

dmg
  • 7,438
  • 2
  • 24
  • 33