The Django, Pyramid, Flask, and Bottle integrations will automatically report uncaught exceptions to Rollbar.

IIf you'd like to be able to use a Django LOGGING handler that could catch errors that happen outside of the middleware and ship them to Rollbar, such as in celery job queue tasks that run in the background separate from web requests, do the following...