天天看點

django自帶伺服器打開,求教:django自帶伺服器啟動失敗

該樓層疑似違規已被系統折疊 隐藏此樓檢視此樓

D:\python_dome\django\myblog>python manage.py runserver 999

Performing system checks...

System check identified no issues (0 silenced).

You have 13 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.

Run 'python manage.py migrate' to apply them.

August 22, 2017 - 11:18:52

Django version 1.11.4, using settings 'myblog.settings'

Starting development server at http://127.0.0.1:999/

Quit the server with CTRL-BREAK.

Unhandled exception in thread started by .wrapper at 0x05F93420>

Traceback (most recent call last):

File "C:\Program Files (x86)\Python36-32\lib\site-packages\django\utils\autoreload.py", line 228, in wrapper

fn(*args, **kwargs)

File "C:\Program Files (x86)\Python36-32\lib\site-packages\django\core\management\commands\runserver.py", line 149, in inner_run

ipv6=self.use_ipv6, threading=threading, server_cls=self.server_cls)

File "C:\Program Files (x86)\Python36-32\lib\site-packages\django\core\servers\basehttp.py", line 164, in run

httpd = httpd_cls(server_address, WSGIRequestHandler, ipv6=ipv6)

File "C:\Program Files (x86)\Python36-32\lib\site-packages\django\core\servers\basehttp.py", line 74, in __init__

super(WSGIServer, self).__init__(*args, **kwargs)

File "C:\Program Files (x86)\Python36-32\lib\socketserver.py", line 453, in __init__

self.server_bind()

File "C:\Program Files (x86)\Python36-32\lib\wsgiref\simple_server.py", line 50, in server_bind

HTTPServer.server_bind(self)

File "C:\Program Files (x86)\Python36-32\lib\http\server.py", line 138, in server_bind

self.server_name = socket.getfqdn(host)

File "C:\Program Files (x86)\Python36-32\lib\socket.py", line 673, in getfqdn

hostname, aliases, ipaddrs = gethostbyaddr(name)

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xcd in position 2: invalid continuation byte

機器是64位 win10