Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django Admin Emails

I've recently put my Django website into production, and I've turned debug off. I've also configured the ADMINS setting so that I can be informed of any errors occurring.

In my settings.py, I have the following:

ADMINS = (('Foo', '[email protected]'))

I use Zoho to send out emails. When I noticed I wasn't receiving anything, I checked the "Sent" folder on their site. It's trying to send an email to <r>, <n>

Why isn't my name and email being parsed, and what can I do to fix it?

like image 552
Magic Avatar asked Apr 24 '26 23:04

Magic


1 Answers

ADMINS should be a list of tuples. You forgot to add a comma to make a list:

ADMINS = (('Foo', '[email protected]'), )

Or you cat use the list syntax:

ADMINS = [('Foo', '[email protected]')]
like image 105
catavaran Avatar answered Apr 26 '26 13:04

catavaran



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!