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'))
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.
- [Django]-Best approach to handle concurrency in Django for eauction toy-app
- [Django]-Django: Search via GET request, POST request or in the URL?
- [Django]-Restrict access to reset_password form of Django in PasswordResetView in case the user is already logged in
- [Django]-Is there any way around saving models that reference each other twice?
Source:stackexchange.com