linux上的项目可以在windows,新建的django项目,在linux系统可以跑,在windows上跑老是报错...
用戶提問(wèn)
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
推薦答案
編碼問(wèn)題,你用的是否都為Python3我猜你肯定用的是Python2
總結(jié)
以上是生活随笔為你收集整理的linux上的项目可以在windows,新建的django项目,在linux系统可以跑,在windows上跑老是报错...的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: linux 760权限,Linux 文件
- 下一篇: linux目录统计编程,linux系统编