In one of my views, I handle a general python exception. This exception does not crash the site, or result in a 500.
I would like to log this exception with django so that I can inspect it. What is the pythonic and djangonic [??] why to do this?
def Set( request ):
if request.POST:
try:
#something nearly impossible
except Exception as exc:
#where do I log this?
pass
return HttpResponse(simplejson.dumps({'ya':'hoo!'}), mimetype='application/json')