Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
54 lines (39 sloc) 1.45 KB


Mailing errors

You can send error tracebacks by email when server errors occur. Configure this by setting:

     'handlers': {
         'mail_admins': {
             'level': 'ERROR',
             'class': 'django.utils.log.AdminEmailHandler',
     'loggers': {
         'django.request': {
             'handlers': ['mail_admins'],
             'level': 'ERROR',
             'propagate': False,


Optionally, you can use Arecibo to record your errors. This can help stop an email flood, gives you a URL for a traceback and statistics. To add-in Arecibo, add the destination server to your

If are developing a site for Mozilla, you can use an existing Arecibo server, otherwise you'll need to set one up.

For example in


The easiest way to report exceptions is to use the middleware, again in

MIDDLEWARE_CLASSES += 'django_arecibo.middleware.AreciboMiddlewareCelery',

Finally, please ensure is set to the default:


Further information on django_arecibo.