Django2.0:UnicodeDecodeError:' utf-8'编解码器不能解码位置0中的字节0xe5:无效的连续字节

时间:2017-12-06 03:01:31

标签: python django utf-8

我在Windows 10中安装Django 2.0,并使用命令     python manage.py runserver

获取以下错误,并且无法打开localhost:8000

系统检查发现没有问题(0静音)。

您有14个未应用的迁移。在应用应用程序的迁移之前,您的项目可能无法正常运行:admin,auth,contenttypes,sessions。 运行' python manage.py migrate'应用它们。 2017年12月6日 - 10:50:09 Django 2.0版,使用设置' mysite.settings' 在http://127.0.0.1:8000/启动开发服务器 使用CTRL-BREAK退出服务器。 .wrapper在0x0000011FCC05AB70>

启动的线程中未处理的异常
Traceback (most recent call last):
  File "C:\Anaconda3\lib\site-packages\django\utils\autoreload.py", line 225, in wrapper
    fn(*args, **kwargs)
  File "C:\Anaconda3\lib\site-packages\django\core\management\commands\runserver.py", line 142, in inner_run
    ipv6=self.use_ipv6, threading=threading, server_cls=self.server_cls)
  File "C:\Anaconda3\lib\site-packages\django\core\servers\basehttp.py", line 163, in run
    httpd = httpd_cls(server_address, WSGIRequestHandler, ipv6=ipv6)
  File "C:\Anaconda3\lib\site-packages\django\core\servers\basehttp.py", line 66, in __init__
    super().__init__(*args, **kwargs)
  File "C:\Anaconda3\lib\socketserver.py", line 453, in __init__
    self.server_bind()
  File "C:\Anaconda3\lib\wsgiref\simple_server.py", line 50, in server_bind
    HTTPServer.server_bind(self)
  File "C:\Anaconda3\lib\http\server.py", line 138, in server_bind
    self.server_name = socket.getfqdn(host)
  File "C:\Anaconda3\lib\socket.py", line 673, in getfqdn
    hostname, aliases, ipaddrs = gethostbyaddr(name)

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

0 个答案:

没有答案
相关问题