I keep getting the error mentioned in the title as I perform any of the following actions:
- Submit ticket
- Update ticket
- Take ticket
This is my first time using Django, I have no experience when it comes to building websites. Could you please help me solve this issue?
Thank you!
Additional details:
error at /helpdesk/tickets/submit/
[Errno 10061] No connection could be made because the target machine actively refused it
Environment:
Request Method: POST
Request URL: http://127.0.0.1:8000/helpdesk/tickets/submit/
Django Version: 1.8.3
Python Version: 2.7.10
Installed Applications:
('django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.humanize',
'markdown_deux',
'bootstrapform',
'helpdesk',
'django.contrib.messages',
'django.contrib.staticfiles')
Installed Middleware:
('django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'django.middleware.security.SecurityMiddleware')
Traceback:
File "C:Python27libsite-packagesdjangocorehandlersase.py" in get_response
132. response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "C:Python27libsite-packagesdjangocontribauthdecorators.py" in _wrapped_view
22. return view_func(request, *args, **kwargs)
File "C:Python27libsite-packageshelpdeskviewsstaff.py" in create_ticket
862. ticket = form.save(user=request.user)
File "C:Python27libsite-packageshelpdeskforms.py" in save
287. files=files,
File "C:Python27libsite-packageshelpdesklib.py" in send_templated_mail
147. return msg.send(fail_silently)
File "C:Python27libsite-packagesdjangocoremailmessage.py" in send
303. return self.get_connection(fail_silently).send_messages([self])
File "C:Python27libsite-packagesdjangocoremailackendssmtp.py" in send_messages
100. new_conn_created = self.open()
File "C:Python27libsite-packagesdjangocoremailackendssmtp.py" in open
58. self.connection = connection_class(self.host, self.port, **connection_params)
File "C:Python27libsmtplib.py" in __init__
256. (code, msg) = self.connect(host, port)
File "C:Python27libsmtplib.py" in connect
316. self.sock = self._get_socket(host, port, self.timeout)
File "C:Python27libsmtplib.py" in _get_socket
291. return socket.create_connection((host, port), timeout)
File "C:Python27libsocket.py" in create_connection
575. raise err
Exception Type: error at /helpdesk/tickets/submit/
Exception Value: [Errno 10061] No connection could be made because the target machine actively refused it
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…