Unicodedecodeerror with runserver

后端 未结 3 922
醉酒成梦
醉酒成梦 2020-11-28 15:07

After setting up all what django requires, I tried the runserver command and I caught an error:

UnicodeDecodeError

3条回答
  •  [愿得一人]
    2020-11-28 15:20

    This sounds like this Python issue. If your computer name has non-ASCII characters this will fail. You may:

    1. Issue the runserver command with explicit host and port: python manage.py runserver 127.0.0.1:8000
    2. Change your computer name to a string that only contains ASCII characters.

提交回复
热议问题