UnicodeDecodeError报错
django吧
全部回复
仅看楼主
level 1
xiaobairen666 楼主
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc3 in position 0: invalid continuation byte
路径没有中文呀???
Performing system checks...
System check identified no issues (0 silenced).
You have 15 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.
July 24, 2020 - 11:08:28
Django version 2.1, using settings 'My_first_Website.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
Exception ignored in thread started by: <function check_errors.<locals>.wrapper at 0x000001D742CBD5E0>
Traceback (most recent call last):
File "F:\360MoveData\Users\thinkpad\Desktop\Code\Django\lib\site-packages\django\utils\autoreload.py", line 225, in wrapper
fn(*args, **kwargs)
File "F:\360MoveData\Users\thinkpad\Desktop\Code\Django\lib\site-packages\django\core\management\commands\runserver.py", line 138, in inner_run
run(self.addr, int(self.port), handler,
File "F:\360MoveData\Users\thinkpad\Desktop\Code\Django\lib\site-packages\django\core\servers\basehttp.py", line 163, in run
httpd = httpd_cls(server_address, WSGIRequestHandler, ipv6=ipv6)
File "F:\360MoveData\Users\thinkpad\Desktop\Code\Django\lib\site-packages\django\core\servers\basehttp.py", line 66, in __init__
super().__init__(*args, **kwargs)
File "c:\users\thinkpad\appdata\local\programs\python\python38\lib\socketserver.py", line 452, in __init__
self.server_bind()
File "c:\users\thinkpad\appdata\local\programs\python\python38\lib\wsgiref\simple_server.py", line 50, in server_bind
HTTPServer.server_bind(self)
File "c:\users\thinkpad\appdata\local\programs\python\python38\lib\http\server.py", line 140, in server_bind
self.server_name = socket.getfqdn(host)
File "c:\users\thinkpad\appdata\local\programs\python\python38\lib\socket.py", line 756, in getfqdn
hostname, aliases, ipaddrs = gethostbyaddr(name)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc3 in position 0: invalid continuation byte
2020年07月24日 03点07分 1
1