Connection refused in Django-Project

486 views
Skip to first unread message

bastil2001

unread,
Nov 4, 2017, 1:01:32 PM11/4/17
to Django users
Hello all,

I am quite new to Django and I downloaded a project I want to start with. I get the server running but can't login as the admin user I created:

System check identified 1 issue (0 silenced).
November 04, 2017 - 10:52:53
Django version 1.7.1, using settings 'JMS.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
[04/Nov/2017 10:53:01] "GET / HTTP/1.1" 302 0
[04/Nov/2017 10:53:01] "GET /account/login?next=/ HTTP/1.1" 200 2809
Internal Server Error: /account/login
Traceback (most recent call last):
 
File "/srv/JMS/src/venv/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
    response
= wrapped_callback(request, *callback_args, **callback_kwargs)
 
File "/srv/JMS/src/interface/views.py", line 65, in sign_in
    user
= authenticate(username=username, password=password)
 
File "/srv/JMS/src/venv/lib/python2.7/site-packages/django/contrib/auth/__init__.py", line 59, in authenticate
    user
= backend.authenticate(**credentials)
 
File "/srv/JMS/src/filemanager/backends.py", line 33, in authenticate
   
if self.linux_auth(encoded):
 
File "/srv/JMS/src/filemanager/backends.py", line 46, in linux_auth
    r
= requests.post(self.imp_url, data=data)
 
File "/srv/JMS/src/venv/lib/python2.7/site-packages/requests/api.py", line 94, in post
   
return request('post', url, data=data, json=json, **kwargs)
 
File "/srv/JMS/src/venv/lib/python2.7/site-packages/requests/api.py", line 49, in request
   
return session.request(method=method, url=url, **kwargs)
 
File "/srv/JMS/src/venv/lib/python2.7/site-packages/requests/sessions.py", line 457, in request
    resp
= self.send(prep, **send_kwargs)
 
File "/srv/JMS/src/venv/lib/python2.7/site-packages/requests/sessions.py", line 569, in send
    r
= adapter.send(request, **kwargs)
 
File "/srv/JMS/src/venv/lib/python2.7/site-packages/requests/adapters.py", line 407, in send
   
raise ConnectionError(err, request=request)
ConnectionError: ('Connection aborted.', error(111, 'Connection refused'))

There is a test user already defined in the system that gives me the exactly same error. What can I do to fix?


Jani Tiainen

unread,
Nov 4, 2017, 1:47:14 PM11/4/17
to django...@googlegroups.com
Hi.

Quite hard to tell exactly what happens but looks like there is issued HTTP POST message to some url which returns connetion refused error.

You should consult that project help channels for better help.


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/8dbe50e4-2d13-4f7e-8bc4-3b21a962980d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages