23
Янв
2016

UnicodeDecodeError при запуске нового Django-проекта на Windows

Создаю новый проект на Django c помощью PyCharm. Ничего не меняю. При запуске проекта выбивает ошибку:

"C:\Program Files (x86)\JetBrains\PyCharm 5.0.3\bin\runnerw.exe"
C:\Python34\python.exe E:/Projects/Proj_test/manage.py runserver 8000

Performing system checks...

System check identified no issues (0 silenced).

You have unapplied migrations; your app may not work properly until
they are applied. Run 'python manage.py migrate' to apply them.
January 23, 2016 - 12:55:37
Django version 1.9.1, using settings 'Proj_test.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.

Unhandled exception in thread started by <function check_errors.<locals>.wrapper
at 0x036E9078>

Traceback (most recent call last):
  [...]
  File "C:\Python34\lib\http\server.py", line 138, in server_bind
    self.server_name = socket.getfqdn(host)
  File "C:\Python34\lib\socket.py", line 467, in getfqdn
    hostname, aliases, ipaddrs = gethostbyaddr(name)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc2 in position 0: invalid continuation byte

Аналогичная ситуация при использовании Visual Studio. Смена версии Python не решает. Использую Windows 7.

Подскажите, как можно решить данную ошибку.

Источник: https://ru.stackoverflow.com/questions/485310/unicodedecodeerror-%D0%BF%D1%80%D0%B8-%D0%B7%D0%B0%D0%BF%D1%83%D1%81%D0%BA%D0%B5-%D0%BD%D0%BE%D0%B2%D0%BE%D0%B3%D0%BE-django-%D0%BF%D1%80%D0%BE%D0%B5%D0%BA%D1%82%D0%B0-%D0%BD%D0%B0-windows

Share

Тебе может это понравится...