You could implement a middleware class with a process_exception
method.  See: 
http://docs.djangoproject.com/en/dev/topics/http/middleware/#process_exception

-Elijah

On Wed, Jul 7, 2010 at 4: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 at http://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.
>

-- 
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.

Reply via email to