A
A
Andrei1penguin12021-05-04 16:17:28
Django
Andrei1penguin1, 2021-05-04 16:17:28

Why can't django decode bytes on server startup?

Good day, django==3.1.4, python==3.8.2
When creating the django-admin startproject startup project, the following error flies:
609148ee68e99829255805.png
At what both the computer name and the rest of the path are written in Latin
Also I tried to explicitly specify the address: python manage.py runserver 127.0.0.1:8000
What could be the problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrew, 2021-05-04
@Andrei1penguin1

Old topic,
Is the hostname written in Cyrillic?
Windows: socket.gethostbyaddr(name) fails for non...

  • Update Python
  • Rename host
  • Or run Django by passing it an ip address instead of a hostname python manage.py runserver 127.0.0.1:8000

[3.9] bpo-26227: Fixes decoding of host names on Windows from ANSI instead of UTF-8 (GH-25510) #25512:
https://github.com/python/cpython/pull/25512/commi...
Well and classic, site search:
Error starting Django server. What to do?

D
Dimonchik, 2021-05-04
@dimonchik2013

in text, left-handed file, save py file in utf8 without any BOM

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question