Does the Google App Engine support app-engine-patch support via ADMINS email after 500 errors?

Django will send ADMINS for 500 errors.

Reading the app-engine-patch docs, it claims to allow mail support, but I cannot say if it is enough to support 500 email.

I tried and it doesn't seem to work, but it is a silent crash without log messages, so I might have configured something incorrectly.

Does anyone have any experience with admin patch email 500 ADMINS?

+3
source share
2 answers

Turns out I misconfigured.

BAD:

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

:

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

ADMINS.

, , - Python :

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

, ; , , , .

DEBUG ADMIN, settings.py; SERVER_EMAIL :

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

500 .

0

Source: https://habr.com/ru/post/1717268/


All Articles