Error in manage.py runserver with Django on windows 8.1

后端 未结 5 1943
盖世英雄少女心
盖世英雄少女心 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:35

    I tried this

    new_environ['PATH'] = os.path.abspath(new_environ['PATH'].replace('\u202a', ''))
    

    but it did not work.

    And my solution is

    new_environ['PATH'] = os.path.abspath(new_environ['PATH'].encode('ascii', 'replace'))
    

    Hope it will help you!

提交回复
热议问题