[Django]-Does Google App Engine with app-engine-patch support emailing ADMINS upon 500 errors?

3👍

Turns out I had misconfigured.

BAD configuration:

ADMINS = ['email1@example.com', 'email2@example.com']

GOOD configuration:

ADMINS = (('name1', 'email1@example.com'), \
          ('name2', 'email2@example.com'))

See the docs about ADMINS.

Also, be cautious about a tuple with a single entry, which due to Python requires a trailing comma:

ADMINS = (('name1', 'email1@example.com'),)

0👍

I was getting silent errors just as you describe; the only clue I had was that the sent email quota was getting used.

I already had DEBUG and ADMIN configured in my settings.py; after adding SERVER_EMAIL to specify the sender everything started working:

DEBUG= false
SERVER_EMAIL = 'a_valid_app_admin_email_address@gmail.com'
ADMINS = (
    ('Reporting email', 'email_that_will_received_reports@gmail.com'),
)

Now I’m receiving emails on 500 errors.

👤morais

Leave a comment