Error in manage.py runserver with Django on windows 8.1

后端 未结 5 1942
盖世英雄少女心
盖世英雄少女心 2021-01-14 19:11

I couldn\'t find this exitcode anywhere but hopefully one of you could help me or let me know if this is a bug in python/Django.

Anyway, first here\'s the stacktrace

5条回答
  •  再見小時候
    2021-01-14 19:30

    UnicodeEncodeError: 'mbcs' codec can't encode characters in position 0--1:invalid character
    

    I had the same problem on windows 7 with

    $ python manage.py runserver
    

    Just in case if someone has cyrillic computer name like I had, it's exactly the thing causing your encoding problem. So the solution is to rename your computer using latin alphabet symbols only.

提交回复
热议问题