#22734: Move SMTP / email settings to a dictionary
-------------------------------------+-------------------------------------
     Reporter:  jwa                  |                    Owner:  nobody
         Type:                       |                   Status:  new
  Cleanup/optimization               |                  Version:  master
    Component:  Core (Mail)          |               Resolution:
     Severity:  Normal               |             Triage Stage:  Accepted
     Keywords:  settings, email,     |      Needs documentation:  0
  mail, smtp                         |  Patch needs improvement:  1
    Has patch:  1                    |                    UI/UX:  0
  Needs tests:  1                    |
Easy pickings:  0                    |
-------------------------------------+-------------------------------------

Comment (by claudep):

 I can understand your desire to unify all email settings. In summary and
 if I understand it well, here are the two proposed designs:

 a.
 {{{
 EMAIL_BACKEND = '...'
 EMAIL_FILE_PATH = '...'  # If file backend is chosen
 SMTP_CONFIG = {  # If smtp backend is chosen
     'HOST': '...',
     'PORT': ?,
     'USER': '',
     'PASSWORD': '',
     'USE_TLS': ''
     'USE_SSL': ''
 }
 }}}

 b.
 {{{
 EMAIL = {
     'BACKEND': '...'
     'FILE_PATH = '...'  # If file backend is chosen
     # If smtp backend is chosen:
     'HOST': '...',
     'PORT': ?,
     'USER': '',
     'PASSWORD': '',
     'USE_TLS': ''
     'USE_SSL': ''
 }
 }}}

 I'm still sticking with the first design (but not -1 on the second),
 because I don't think we gain much in grouping all settings (and assuming
 generally that less change is better).
 The proposal in comment:6 seems overengineered in my opinion.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/22734#comment:13>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/061.af100a053d46513f961f364ecfa927f3%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to