Hi Ian, you suggestion make perfect sense but I'm currently running django 1.4. Anyway I tried adding those line to my settings, but nothing has changed...
Any other suggestion? I don't even know how to debug such an issue... should I insert breakpoints in the django library? E. On Saturday, May 4, 2013 5:06:53 PM UTC+2, Ian Lewis wrote: > > Hi, > > Did you set your LOGGING configuration in your settings.py? If you > happened to upgrade to Django 1.5 then the default LOGGING configuration > went away and it will no longer sent emails to the admins without some > configuration. This is described at the following url where it says "Prior > to Django 1.5": > https://docs.djangoproject.com/en/dev/topics/logging/#configuring-logging > > You need to set up something like the following for admin error mails to > work: > > LOGGING = { > 'version': 1, > 'disable_existing_loggers': False, > 'filters': { > 'require_debug_false': { > '()': 'django.utils.log.RequireDebugFalse', > } > }, > 'handlers': { > 'mail_admins': { > 'level': 'ERROR', > 'filters': ['require_debug_false'], > 'class': 'django.utils.log.AdminEmailHandler' > } > }, > 'loggers': { > 'django.request': { > 'handlers': ['mail_admins'], > 'level': 'ERROR', > 'propagate': True, > }, > } > } > > Hope that helps, > Ian > > > On Sat, May 4, 2013 at 8:01 AM, ?manu* <[email protected]<javascript:> > > wrote: > >> I suddenly realized that my server is no more sending email notifications >> when an internal error occurs. I'm not sure which could be the modification >> that caused this behavior. I have the following information: >> >> 1. on internal errors the server gives an error not founding template >> file 500.html. >> >> 2. if I put my 500.html template then django does not complain anymore, >> shows the page but does not send the email message. >> >> 3. from manage.py shell the command django.core.mail.mail_admins works >> fine (email arrives to the admins) >> >> Any clue? >> >> Thanks, >> E. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To post to this group, send email to [email protected]<javascript:> >> . >> Visit this group at http://groups.google.com/group/django-users?hl=en. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > > > -- > Ian > > http://www.ianlewis.org/ > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.

