I'm following the first tutorial of Django docs to run my development server, but in the moment to try to access to the server in http://127.0.0.1:8000 it fails to connect. The browser simply says that it couldn't connect to the server. This is what outputs the console when I put the command python manage.py runserver
:
System check identified no issues (0 silenced).
August 03, 2017 - 14:31:04
Django version 1.11.4, using settings 'mysite.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
Unhandled exception in thread started by <function check_errors.<locals>.wrapper
at 0x0000000003E14730>
Traceback (most recent call last):
File "C:\Program Files\Python36\lib\site-packages\django\utils\autoreload.py",
line 228, in wrapper
fn(*args, **kwargs)
File "C:\Program Files\Python36\lib\site-packages\django\core\management\comma
nds\runserver.py", line 149, in inner_run
ipv6=self.use_ipv6, threading=threading, server_cls=self.server_cls)
File "C:\Program Files\Python36\lib\site-packages\django\core\servers\basehttp
.py", line 164, in run
httpd = httpd_cls(server_address, WSGIRequestHandler, ipv6=ipv6)
File "C:\Program Files\Python36\lib\site-packages\django\core\servers\basehttp
.py", line 74, in __init__
super(WSGIServer, self).__init__(*args, **kwargs)
File "C:\Program Files\Python36\lib\socketserver.py", line 453, in __init__
self.server_bind()
File "C:\Program Files\Python36\lib\wsgiref\simple_server.py", line 50, in ser
ver_bind
HTTPServer.server_bind(self)
File "C:\Program Files\Python36\lib\http\server.py", line 138, in server_bind
self.server_name = socket.getfqdn(host)
File "C:\Program Files\Python36\lib\socket.py", line 673, in getfqdn
hostname, aliases, ipaddrs = gethostbyaddr(name)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf3 in position 3: invalid
continuation byte
I'm using python 3.6.1 and django 1.11.4, on Windows 7.
EDIT: I forget mentioning that i'm using the start project (which generates using the command django-admin startproject mysite
) without any edit.