I have created a decorator for Django views which handles AJAX tracebacks and sends the traceback back to the AJAX application as JSON, e.g.
{'status':'error', 'message': <traceback goes here>} It uses the traceback module to output the full traceback. Obviously you need to have a handler that receives this data and displays in on the page (although you can inspect it in firebug). If you'd like the code for it, I can ask my company whether they'd be happy with me publishing it. Cheers, Euan On Jul 7, 10:35 pm, Jonathan Hayward <christos.jonathan.hayw...@gmail.com> wrote: > I'm working on a view made to output JSON for Ajax use. My log has: > > [07/Jul/2010 17:47:13] "POST /ajax/login HTTP/1.1" 500 50678 > > That looks like Django gave a helpful and detailed stacktrace page, albeit > to jQuery expecting JSON. > > How can I ask Django to log uncaught exceptions to a file or equivalent? The > test server has no MTA so I can't really ask it to email me exceptions. > > TIA, > -- > → Jonathan Hayward, christos.jonathan.hayw...@gmail.com > → An Orthodox Christian author: theology, literature, et cetera. > → My award-winning collection is available for free reading online: > ☩ I invite you to visit my main site athttp://JonathansCorner.com/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.