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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值