Traceback (most recent call last):
File "/home/jaseer/Desktop/CRM Artdots/env/lib/python3.10/site-packages/django/core/handlers/exception.py", line 56, in inner
response = get_response(request)
File "/home/jaseer/Desktop/CRM Artdots/env/lib/python3.10/site-packages/django/core/handlers/base.py", line 197, in _get_response
response = wrapped_callback(request, *callback_args, callback_kwargs)
File "/home/jaseer/Desktop/CRM Artdots/env/lib/python3.10/site-packages/django/views/generic/base.py", line 103, in view
return self.dispatch(request, *args, *kwargs)
File "/home/jaseer/Desktop/CRM Artdots/agents/mixin.py", line 9, in dispatch
return super().dispatch(request, args, kwargs)
File "/home/jaseer/Desktop/CRM Artdots/env/lib/python3.10/site-packages/django/views/generic/base.py", line 142, in dispatch
return handler(request, *args, *kwargs)
File "/home/jaseer/Desktop/CRM Artdots/env/lib/python3.10/site-packages/django/views/generic/edit.py", line 184, in post
return super().post(request, args, **kwargs)
File "/home/jaseer/Desktop/CRM Artdots/env/lib/python3.10/site-packages/django/views/generic/edit.py", line 153, in post
return self.form_valid(form)
File "/home/jaseer/Desktop/CRM Artdots/agents/views.py", line 37, in form_valid
send_mail(
File "/home/jaseer/Desktop/CRM Artdots/env/lib/python3.10/site-packages/django/core/mail/init.py", line 87, in send_mail
return mail.send()
File "/home/jaseer/Desktop/CRM Artdots/env/lib/python3.10/site-packages/django/core/mail/message.py", line 298, in send
return self.get_connection(fail_silently).send_messages([self])
File "/home/jaseer/Desktop/CRM Artdots/env/lib/python3.10/site-packages/django/core/mail/backends/smtp.py", line 124, in send_messages
new_conn_created = self.open()
File "/home/jaseer/Desktop/CRM Artdots/env/lib/python3.10/site-packages/django/core/mail/backends/smtp.py", line 80, in open
self.connection = self.connection_class(
File "/usr/lib/python3.10/smtplib.py", line 255, in init
(code, msg) = self.connect(host, port)
File "/usr/lib/python3.10/smtplib.py", line 341, in connect
self.sock = self._get_socket(host, port, self.timeout)
File "/usr/lib/python3.10/smtplib.py", line 312, in _get_socket
return socket.create_connection((host, port), timeout,
File "/usr/lib/python3.10/socket.py", line 845, in create_connection
raise err
File "/usr/lib/python3.10/socket.py", line 833, in create_connection
sock.connect(sa)
Environment:
Request Method: POST Request URL: http://127.0.0.1:8000/agent/create/
Django Version: 4.1.7 Python Version: 3.10.6 Installed Applications: ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'leads', 'agents'] Installed Middleware: ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware']
Traceback (most recent call last): File "/home/jaseer/Desktop/CRM Artdots/env/lib/python3.10/site-packages/django/core/handlers/exception.py", line 56, in inner response = get_response(request) File "/home/jaseer/Desktop/CRM Artdots/env/lib/python3.10/site-packages/django/core/handlers/base.py", line 197, in _get_response response = wrapped_callback(request, *callback_args, callback_kwargs) File "/home/jaseer/Desktop/CRM Artdots/env/lib/python3.10/site-packages/django/views/generic/base.py", line 103, in view return self.dispatch(request, *args, *kwargs) File "/home/jaseer/Desktop/CRM Artdots/agents/mixin.py", line 9, in dispatch return super().dispatch(request, args, kwargs) File "/home/jaseer/Desktop/CRM Artdots/env/lib/python3.10/site-packages/django/views/generic/base.py", line 142, in dispatch return handler(request, *args, *kwargs) File "/home/jaseer/Desktop/CRM Artdots/env/lib/python3.10/site-packages/django/views/generic/edit.py", line 184, in post return super().post(request, args, **kwargs) File "/home/jaseer/Desktop/CRM Artdots/env/lib/python3.10/site-packages/django/views/generic/edit.py", line 153, in post return self.form_valid(form) File "/home/jaseer/Desktop/CRM Artdots/agents/views.py", line 37, in form_valid send_mail( File "/home/jaseer/Desktop/CRM Artdots/env/lib/python3.10/site-packages/django/core/mail/init.py", line 87, in send_mail return mail.send() File "/home/jaseer/Desktop/CRM Artdots/env/lib/python3.10/site-packages/django/core/mail/message.py", line 298, in send return self.get_connection(fail_silently).send_messages([self]) File "/home/jaseer/Desktop/CRM Artdots/env/lib/python3.10/site-packages/django/core/mail/backends/smtp.py", line 124, in send_messages new_conn_created = self.open() File "/home/jaseer/Desktop/CRM Artdots/env/lib/python3.10/site-packages/django/core/mail/backends/smtp.py", line 80, in open self.connection = self.connection_class( File "/usr/lib/python3.10/smtplib.py", line 255, in init (code, msg) = self.connect(host, port) File "/usr/lib/python3.10/smtplib.py", line 341, in connect self.sock = self._get_socket(host, port, self.timeout) File "/usr/lib/python3.10/smtplib.py", line 312, in _get_socket return socket.create_connection((host, port), timeout, File "/usr/lib/python3.10/socket.py", line 845, in create_connection raise err File "/usr/lib/python3.10/socket.py", line 833, in create_connection sock.connect(sa)
Exception Type: ConnectionRefusedError at /agent/create/ Exception Value: [Errno 111] Connection refused