2013-11-27 50 views
2

臨時故障這是我的電子郵件設置settings.py:Django的註冊 - 註冊形式回報gaierror [錯誤-3]在名稱解析

DEFAULT_FROM_EMAIL = '[email protected]' 
EMAIL_HOST = 'smtp.gmail.com' 
EMAIL_PORT = 587 
EMAIL_HOST_USER = '[email protected]' 
EMAIL_HOST_PASSWORD = 'K132465789' 
EMAIL_USE_TLS = True 

這是生成的,如果我嘗試錯誤註冊:

gaierror at /register/ 

[Errno -3] Temporary failure in name resolution 

Request Method:  POST 
Request URL: http://192.168.18.39/register/ 
Django Version:  1.4.2 
Exception Type:  gaierror 
Exception Value:  

[Errno -3] Temporary failure in name resolution 

Exception Location:  /usr/lib/python2.7/socket.py in create_connection, line 553 
Python Executable: /usr/bin/python 
Python Version:  2.7.2 
Python Path:  

我檢查在網絡上類似的問題,但我找不到任何解決方案,大多隻有在如何建立settings.py的例子,但它們對應於我所做的。例如(http://ltslashgt.com/2007/07/02/gmail-and-django/) 我也檢查了django註冊文檔,但沒有提及可能出現的問題。這裏(https://django-registration.readthedocs.org/en/v0.8/quickstart.html)。

+0

你能解決這個錯誤嗎?我現在得到完全相同的錯誤。如果你能弄清楚什麼,請幫忙。謝謝。 –

回答

0

雖然我可能晚於您的問題,在這裏我要離開這個爲得到這裏的人們尋找一個解決方案:

我的問題是,我已經打破了我的服務器上的DNS配置,我將DNS服務器更改爲正常工作,並且一切正常。