hello i'm trying a "python manage.py runserver" command in the cmd
but it returned me this eroor:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb5 in position 2: invalid start byte"
on the position
"socket.py", line 791, in getfqdn
hostname, aliases, ipaddrs = gethostbyaddr(name)
Here ist the original code in the editor:
def getfqdn(name=''):
name = name.strip()
if not name or name == '0.0.0.0':
name = gethostname()
try:
hostname, aliases, ipaddrs = gethostbyaddr(name)
except error:
pass
else:
aliases.insert(0, hostname)
for name in aliases:
if '.' in name:
break
else:
name = hostname
return name
I have no idea how i can bypass this error since i am not sure if i understand the code.
(first time asking question, thanks for your help!)