我在我的网站中使用 Django 作为联系表。提交时出现问题
[Errno 97] Address family not supported by protocol
Request Method: POST
Request URL: http://site.com/accept
Django Version: 1.3.1
Exception Type: error
Exception Value:
[Errno 97] Address family not supported by protocol
Exception Location: /usr/lib64/python2.6/socket.py in create_connection, line 567
Python Executable: /usr/local/bin/python
Python Version: 2.6.6
这是我的设置:
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_PORT = 587
EMAIL_HOST_USER = 'myemail@gmail.com'
EMAIL_HOST_PASSWORD = 'mypassword'
EMAIL_USE_TLS = True