윈도우에서 장고

조회수 899회

장고 세팅을 맞춰놓고 runserver 실행 시 아래와 같은 오류가 뜹니다.

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb9 in position 5: invalid start byte

인코딩 에러인 건 알겠는데, 이걸 어떻게 고쳐야 하나요?

전체 오류 로그는 아래에 있습니다.

Quit the server with CTRL-BREAK.

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

Traceback (most recent call last):

File "C:\Users\sophist\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\utils\autoreload.py", line 225, in wrapper

fn(*args, **kwargs)

File "C:\Users\sophist\AppData\Local\Programs\Python\Python37-32\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:\Users\sophist\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\core\servers\basehttp.py", line 163, in run

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

File "C:\Users\sophist\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\core\servers\basehttp.py", line 66, in init

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

File "C:\Users\sophist\AppData\Local\Programs\Python\Python37-32\lib\socketserver.py", line 449, in init

self.server_bind()

File "C:\Users\sophist\AppData\Local\Programs\Python\Python37-32\lib\wsgiref\simple_server.py", line 50, in server_bind

HTTPServer.server_bind(self)

File "C:\Users\sophist\AppData\Local\Programs\Python\Python37-32\lib\http\server.py", line 139, in server_bind

self.server_name = socket.getfqdn(host)

File "C:\Users\sophist\AppData\Local\Programs\Python\Python37-32\lib\socket.py", line 676, in getfqdn

hostname, aliases, ipaddrs = gethostbyaddr(name)

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb9 in position 5: invalid start byte

1 답변

답변을 하려면 로그인이 필요합니다.

프로그래머스 커뮤니티는 개발자들을 위한 Q&A 서비스입니다. 로그인해야 답변을 작성하실 수 있습니다.

(ಠ_ಠ)
(ಠ‿ಠ)