linux上的项目可以在windows,新建的django项目,在linux系统可以跑,在windows上跑老是报错...

用户提问

Traceback (most recent call last):

File "E:/pycharm__project/mysite/manage.py", line 22, in

execute_from_command_line(sys.argv)

File "E:\PYTHON27\lib\site-packages\django\core\management\__init__.py", line 363, in execute_from_command_line

utility.execute()

File "E:\PYTHON27\lib\site-packages\django\core\management\__init__.py", line 355, in execute

self.fetch_command(subcommand).run_from_argv(self.argv)

File "E:\PYTHON27\lib\site-packages\django\core\management\base.py", line 283, in run_from_argv

self.execute(*args, **cmd_options)

File "E:\PYTHON27\lib\site-packages\django\core\management\commands\runserver.py", line 62, in execute

super(Command, self).execute(*args, **options)

File "E:\PYTHON27\lib\site-packages\django\core\management\base.py", line 330, in execute

output = self.handle(*args, **options)

File "E:\PYTHON27\lib\site-packages\django\core\management\commands\runserver.py", line 101, in handle

self.run(**options)

File "E:\PYTHON27\lib\site-packages\django\core\management\commands\runserver.py", line 110, in run

autoreload.main(self.inner_run, None, options)

File "E:\PYTHON27\lib\site-packages\django\utils\autoreload.py", line 341, in main

reloader(wrapped_main_func, args, kwargs)

File "E:\PYTHON27\lib\site-packages\django\utils\autoreload.py", line 312, in python_reloader

exit_code = restart_with_reloader()

File "E:\PYTHON27\lib\site-packages\django\utils\autoreload.py", line 294, in restart_with_reloader

str_value = force_bytes(new_environ[key], encoding=encoding)

File "E:\PYTHON27\lib\site-packages\django\utils\encoding.py", line 124, in force_bytes

return s.decode('utf-8', errors).encode(encoding, errors)

File "E:\PYTHON27\lib\encodings\utf_8.py", line 17, in decode

return codecs.utf_8_decode(input, errors, True)

UnicodeDecodeError: 'utf8' codec can't decode byte 0xd0 in position 3: invalid continuation byte

推荐答案

编码问题,你用的是否都为Python3我猜你肯定用的是Python2

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值