title: Django fail to use data from setting.ini [Errno 11001] getaddrinfo failed
body: <p>When I set in setting.py the folowing paramters 
  EMAIL_HOST ,EMAIL_PORT , EMAIL_HOST_USER, EMAIL_HOST_PASSWORD EMAIL_USE_TLS,  DEFAULT_FROM_EMAIL </p>
  
  <p>And call send_mail every thing works fine but,
  when I move does paramters to setting.iniI I get error.
  I am able to see does param correct in my code when I try to view them:</p>
  
  <pre><code>raise Exception('EMAIL_HOST -&gt;   ' + settings.EMAIL_HOST +
                      'EMAIL_PORT -&gt;   ' + str(settings.EMAIL_PORT) +
                      'EMAIL_HOST_PASSWORD -&gt;   ' + 
  settings.EMAIL_HOST_PASSWORD +
                      'EMAIL_HOST_USER -&gt;   ' + settings.EMAIL_HOST_USER +
                      'EMAIL_USE_TLS -&gt;   ' + str(settings.EMAIL_USE_TLS)
                      )
  </code></pre>
  
  <p>But when I try to send mail I get the folowing error</p>
  
  <pre><code>[Errno 11001] getaddrinfo failed
  </code></pre>
  
  <p>Any suggestion Why when I use does paramters in setting.py it works fine 
  and when I put then in setting.ini I am able to see them but fail to send mail ,what am I doing wrong? </p>
  
  <p>I use:
  Django Version: 1.11
  Python Version: 3.5.0
  and I call send_mail as folow</p>
  
  <pre><code>send_mail("this is the subject",
           "this is the content", settings.EMAIL_HOST_USER, ["eran3216@gmail.com","eran3216@gmail.com"])
  </code></pre>
  
  <p>Thanks
  for the help</p>