Friday, January 4, 2013

Re: Django won't send 500 or 404 emails, but django.core.mail.EmailMessage and django.utils.log.AdminEmailHandler work

The 404 emails are sent via the mail_managers method, which uses emails from the django.conf.settings.MANAGERS setting, as opposed to errors which go to the ADMINS.  Double-check what MANAGERS (and ADMINS) is actually set to:

$ python manage.py shell
>>> from django.conf import settings
>>> settings.MANAGERS
(('Me', 'me@example.com'),)
>>> settings.ADMINS
(('Me', 'me@example.com'),)


On Thursday, January 3, 2013 8:14:54 PM UTC-5, Jan Paricka wrote:
Same problem here.

1) CommonMiddleware in place

2) debug = False

3) SEND_BROKEN_LINK_EMAILS = True

And yet no 404 emails...

Otherwise the app is happily emailing...

Any thoughts?

Thanks

Jan


On Friday, June 24, 2011 9:56:23 PM UTC+2, Kyle Gong wrote:
For some reason, I can't get my server to send 500 or 404 emails.  I
am set up to send email through gmail, and it is working properly when
I send error emails through a logger set up using
django.utils.log.AdminEmailHandler, and also when I send mail using
django.core.mail.EmailMessage.

I have DEBUG = False and SEND_BROKEN_LINK_EMAILS = True.

The server is a linode running Ubuntu 10.04, Django 1.3 and Python
2.6.5.

Any idea where I could look to track down the problem?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/JP53pwsFR7MJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment