Comments (5)
I'm sorry. I don't know what you are talking about. I doubt that this has anything to do with django-registration-email.
from django-registration-email.
how to solve this issue?
from django-registration-email.
You need to set up your email connection properly: https://docs.djangoproject.com/en/2.0/topics/email/
from django-registration-email.
ConnectionRefusedError Traceback (most recent call last)
c:\users\roshi\pycharmprojects\djangoml\venv\lib\site-packages\urllib3\connection.py in _new_conn(self)
158 try:
--> 159 conn = connection.create_connection(
160 (self._dns_host, self.port), self.timeout, **extra_kw
c:\users\roshi\pycharmprojects\djangoml\venv\lib\site-packages\urllib3\util\connection.py in create_connection(address, timeout, source_address, socket_options)
83 if err is not None:
---> 84 raise err
85
c:\users\roshi\pycharmprojects\djangoml\venv\lib\site-packages\urllib3\util\connection.py in create_connection(address, timeout, source_address, socket_options)
73 sock.bind(source_address)
---> 74 sock.connect(sa)
75 return sock
ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it
During handling of the above exception, another exception occurred:
NewConnectionError Traceback (most recent call last)
c:\users\roshi\pycharmprojects\djangoml\venv\lib\site-packages\urllib3\connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
669 # Make the request on the httplib connection object.
--> 670 httplib_response = self._make_request(
671 conn,
c:\users\roshi\pycharmprojects\djangoml\venv\lib\site-packages\urllib3\connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
391 else:
--> 392 conn.request(method, url, **httplib_request_kw)
393
~\AppData\Local\Programs\Python\Python38-32\lib\http\client.py in request(self, method, url, body, headers, encode_chunked)
1239 """Send a complete request to the server."""
-> 1240 self._send_request(method, url, body, headers, encode_chunked)
1241
~\AppData\Local\Programs\Python\Python38-32\lib\http\client.py in _send_request(self, method, url, body, headers, encode_chunked)
1285 body = _encode(body, 'body')
-> 1286 self.endheaders(body, encode_chunked=encode_chunked)
1287
~\AppData\Local\Programs\Python\Python38-32\lib\http\client.py in endheaders(self, message_body, encode_chunked)
1234 raise CannotSendHeader()
-> 1235 self._send_output(message_body, encode_chunked=encode_chunked)
1236
~\AppData\Local\Programs\Python\Python38-32\lib\http\client.py in _send_output(self, message_body, encode_chunked)
1005 del self._buffer[:]
-> 1006 self.send(msg)
1007
~\AppData\Local\Programs\Python\Python38-32\lib\http\client.py in send(self, data)
945 if self.auto_open:
--> 946 self.connect()
947 else:
c:\users\roshi\pycharmprojects\djangoml\venv\lib\site-packages\urllib3\connection.py in connect(self)
186 def connect(self):
--> 187 conn = self._new_conn()
188 self._prepare_conn(conn)
c:\users\roshi\pycharmprojects\djangoml\venv\lib\site-packages\urllib3\connection.py in _new_conn(self)
170 except SocketError as e:
--> 171 raise NewConnectionError(
172 self, "Failed to establish a new connection: %s" % e
NewConnectionError: <urllib3.connection.HTTPConnection object at 0x0694A880>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it
During handling of the above exception, another exception occurred:
MaxRetryError Traceback (most recent call last)
c:\users\roshi\pycharmprojects\djangoml\venv\lib\site-packages\requests\adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
438 if not chunked:
--> 439 resp = conn.urlopen(
440 method=request.method,
c:\users\roshi\pycharmprojects\djangoml\venv\lib\site-packages\urllib3\connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
723
--> 724 retries = retries.increment(
725 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
c:\users\roshi\pycharmprojects\djangoml\venv\lib\site-packages\urllib3\util\retry.py in increment(self, method, url, response, error, _pool, _stacktrace)
438 if new_retry.is_exhausted():
--> 439 raise MaxRetryError(_pool, url, error or ResponseError(cause))
440
MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=8000): Max retries exceeded with url: /api/v1/income_classifier/predict?status=ab_testing (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0694A880>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))
During handling of the above exception, another exception occurred:
ConnectionError Traceback (most recent call last)
in
2 input_data = dict(X_test.iloc[i])
3 target = y_test.iloc[i]
----> 4 r = requests.post("http://127.0.0.1:8000/api/v1/income_classifier/predict?status=ab_testing", input_data)
5 response = r.json()
6 # provide feedback
c:\users\roshi\pycharmprojects\djangoml\venv\lib\site-packages\requests\api.py in post(url, data, json, **kwargs)
117 """
118
--> 119 return request('post', url, data=data, json=json, **kwargs)
120
121
c:\users\roshi\pycharmprojects\djangoml\venv\lib\site-packages\requests\api.py in request(method, url, **kwargs)
59 # cases, and look like a memory leak in others.
60 with sessions.Session() as session:
---> 61 return session.request(method=method, url=url, **kwargs)
62
63
c:\users\roshi\pycharmprojects\djangoml\venv\lib\site-packages\requests\sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
528 }
529 send_kwargs.update(settings)
--> 530 resp = self.send(prep, **send_kwargs)
531
532 return resp
c:\users\roshi\pycharmprojects\djangoml\venv\lib\site-packages\requests\sessions.py in send(self, request, **kwargs)
641
642 # Send the request
--> 643 r = adapter.send(request, **kwargs)
644
645 # Total elapsed time of the request (approximately)
c:\users\roshi\pycharmprojects\djangoml\venv\lib\site-packages\requests\adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
514 raise SSLError(e, request=request)
515
--> 516 raise ConnectionError(e, request=request)
517
518 except ClosedPoolError as e:
ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=8000): Max retries exceeded with url: /api/v1/income_classifier/predict?status=ab_testing (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0694A880>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))
from django-registration-email.
unable to connect can anyone help me in resolving this
from django-registration-email.
Related Issues (20)
- DeprecationWarning: django.conf.urls.defaults is deprecated; use django.conf.urls instead HOT 1
- After installing using "pip install -e ... git:...", adding to INSTALLED_APPS and then running "python manage.py syncdb" I get "django.core.exceptions.ImproperlyConfigured: ImportError registration: No module named registration" HOT 1
- EmailRegistrationForm in forms.py has unrequired your_name field HOT 2
- best practice on updating email address HOT 1
- Logging in with email does not worl HOT 2
- Exception caused when used with django-registration 1.0 HOT 6
- Not compatible with django-registration 1.0? HOT 4
- hashed username in password reset email? HOT 3
- Use with custom user model HOT 4
- Custom Form problem HOT 2
- Change the username when the email address changes? HOT 4
- name of the views prefixed by "auth" ? HOT 9
- I am getting password_reset_confirm() got an unexpected keyword argument 'uidb36' HOT 1
- some bug with your_name field HOT 5
- Add German translation HOT 1
- Are this repo really *Discountinued* HOT 5
- md5 module is deprecated for Django 1.5. Use hashlib instead. HOT 1
- Errno 10061] No connection could be made because the target machine actively refused it HOT 8
- md5 module is deprecated in Django 1.5. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-registration-email.