joestump / django-ajax

A simple framework for creating AJAX endpoints in Django.
http://github.com/joestump/django-ajax
BSD 3-Clause "New" or "Revised" License
260 stars 54 forks source link

Proper error handling #28

Closed mattrobenolt closed 12 years ago

mattrobenolt commented 12 years ago

The only nice way to do this is to just manually call logger.error ourselves to make sure the error gets logged properly.

In Django 1.4, ajax requests give a nice clean plain text response back and automatically handles it. We'll have to probably conditionally ignore the error if Django >= 1.4.