]> git.ipfire.org Git - thirdparty/patchwork.git/commit
settings: Also define SERVER_EMAIL for email logs
authorDamien Lespiau <damien.lespiau@intel.com>
Sat, 26 Sep 2015 09:56:36 +0000 (10:56 +0100)
committerStephen Finucane <stephen.finucane@intel.com>
Thu, 5 Nov 2015 03:51:30 +0000 (03:51 +0000)
commit0b5a953951321434894c7fd48a3c98053785856d
tree4d584d972ed6b8528b7cdb16621ba56310923738
parent347f54c5e349f62fafdc42068db0238a59be5d84
settings: Also define SERVER_EMAIL for email logs

Django can send emails to admins on 500 HTTP errors when DEBUG is false.
That looks handy. That mechanism uses SERVER_EMAIL for the From:
address, which defaults to root@localhost and can cause problems in the
email delivery.

Use the same address than DEFAULT_FROM_EMAIL by default.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Acked-by: Stephen Finucane <stephen.finucane@intel.com>
patchwork/settings/base.py
patchwork/settings/production.example.py