Move SMTP / email settings to a dictionary
|Reported by:||jwa||Owned by:||nobody|
|Severity:||Normal||Keywords:||settings, email, mail, smtp|
|Cc:||jorgecarleitao@…, loic84||Triage Stage:||Accepted|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||yes||Patch needs improvement:||yes|
Email settings for the SMTP backend are currently configured using 6 different variables. As there will be more and more to configure in the future (see #20743) it might be an idea to move these settings into a dictionary, similar to the way DATABASES or CACHES are configured.
An initial patch can be found here: https://github.com/julianwachholz/django/tree/feature/12factor-smtp
Things to note:
Backwards compatibility is a large concern here, as previously detected in #21051. One way to introduce these setting without breaking user-space code that directly accesses the EMAIL_* settings would be to have lazy settings within global_settings.py.
Change History (23)
comment:1 Changed 18 months ago by jwa
- Needs documentation unset
- Needs tests set
- Patch needs improvement set