#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 think that choosing to customize some behavior by a setting or by code
 depends on:

  * the configured value is strongly instance-specific, and might change
 for each environment: -> setting
  * the configured value is project-specific and is not supposed to change
 on each deployment environment: -> code

 For example, the SMTP host and port are completely dependent on the
 machine on which the code is running. I find a bit strange to ask people
 to change the code of a project or application each time they want to
 deploy it on another environment. With this reasoning, I think that even
 the timeout might be better set by a setting :-/

-- 
Ticket URL: <https://code.djangoproject.com/ticket/22734#comment:11>
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/061.f2cdddcd9bdfa380553cc3aa8c41fe76%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to