Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/328.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 创建Django电子邮件表单获取奇怪的套接字/权限错误_Python_Django_Sockets_Email_Django Forms - Fatal编程技术网

Python 创建Django电子邮件表单获取奇怪的套接字/权限错误

Python 创建Django电子邮件表单获取奇怪的套接字/权限错误,python,django,sockets,email,django-forms,Python,Django,Sockets,Email,Django Forms,因此,当我尝试测试我个人网站的电子邮件表单是否有效时,我不断遇到这个错误。我正在运行Windows8。我甚至在运行Django服务器python manage.py运行服务器8xxx时尝试了更改端口。请帮帮我,我对这个有点生疏!这是我的密码: Request Method: POST Request URL: http://localhost:8005/contact/ Django Version: 1.5.1 Python Version: 2.7.2 Installed Applicat

因此,当我尝试测试我个人网站的电子邮件表单是否有效时,我不断遇到这个错误。我正在运行Windows8。我甚至在运行Django服务器python manage.py运行服务器8xxx时尝试了更改端口。请帮帮我,我对这个有点生疏!这是我的密码:

Request Method: POST
Request URL: http://localhost:8005/contact/

Django Version: 1.5.1
Python Version: 2.7.2
Installed Applications:
('django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django.contrib.admin')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware')


Traceback:
File "c:\Python27\lib\site-packages\django\core\handlers\base.py" in get_response
  115.                         response = callback(request, *callback_args, **callback_kwargs)
File "c:\Users\Aaron\Development\GitHub\mysite\mysite\views.py" in contact
  32.                 ['baldaaron6393@gmail.com'],
File "c:\Python27\lib\site-packages\django\core\mail\__init__.py" in send_mail
  62.                         connection=connection).send()
File "c:\Python27\lib\site-packages\django\core\mail\message.py" in send
  255.         return self.get_connection(fail_silently).send_messages([self])
File "c:\Python27\lib\site-packages\django\core\mail\backends\smtp.py" in send_messages
  88.             new_conn_created = self.open()
File "c:\Python27\lib\site-packages\django\core\mail\backends\smtp.py" in open
  49.                                            local_hostname=DNS_NAME.get_fqdn())
File "c:\Python27\lib\smtplib.py" in __init__
  242.             (code, msg) = self.connect(host, port)
File "c:\Python27\lib\smtplib.py" in connect
  302.         self.sock = self._get_socket(host, port, self.timeout)
File "c:\Python27\lib\smtplib.py" in _get_socket
  277.         return socket.create_connection((port, host), timeout)
File "c:\Python27\lib\socket.py" in create_connection
  571.         raise err

Exception Type: error at /contact/
Exception Value: [Errno 10013] An attempt was made to access a socket in a way forbidden by its access permissions