用户提问
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