#17445: sending mail fails when EMAIL_HOST is an empty string
-----------------------------+--------------------------------------
     Reporter:  tinodb       |                    Owner:  nobody
         Type:  Bug          |                   Status:  closed
    Component:  Core (Mail)  |                  Version:  1.3
     Severity:  Normal       |               Resolution:  wontfix
     Keywords:               |             Triage Stage:  Unreviewed
    Has patch:  0            |      Needs documentation:  0
  Needs tests:  0            |  Patch needs improvement:  0
Easy pickings:  1            |                    UI/UX:  0
-----------------------------+--------------------------------------
Changes (by kmtracey):

 * status:  new => closed
 * needs_better_patch:   => 0
 * resolution:   => wontfix
 * needs_tests:   => 0
 * needs_docs:   => 0


Comment:

 The way to have your project use a default value, for any setting, is to
 not set it at all in your own settings file. This is described here:
 https://docs.djangoproject.com/en/1.3/topics/settings/#default-settings

 If you instead set it to an empty value, that's the value that will be
 used. Likely there are many settings that will give odd errors if this is
 done. I don't see that EMAIL_HOST is special in some way that Django's
 code should guard against an "improper" setting and fallback to the
 default in spite of what's been set in the local settings file. Which
 implies if we were to "fix" this case, we should "fix" all such settings
 where an empty value would likely never be correct, and make them fallback
 to their defaults. Which I don't think we want to do.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/17445#comment:1>
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 post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to