输入127.0.0.1 端口8000后显示
A server error occurred. Please contact the administrator.
不成功
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\django\core\handlers\exception.py", line 87, in response_for_exception
response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\django\core\handlers\exception.py", line 122, in handle_uncaught_exception
return debug.technical_500_response(request, *exc_info)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\django\views\debug.py", line 94, in technical_500_response
html = reporter.get_traceback_html()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\django\views\debug.py", line 332, in get_traceback_html
t = DEBUG_ENGINE.from_string(fh.read())
UnicodeDecodeError: 'gbk' codec can't decode byte 0xdf in position 17228: illegal multibyte sequence
[14/Dec/2017 13:42:46] "GET / HTTP/1.1" 500 59
这是terminal里显示的
A server error occurred. Please contact the administrator.
不成功
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\django\core\handlers\exception.py", line 87, in response_for_exception
response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\django\core\handlers\exception.py", line 122, in handle_uncaught_exception
return debug.technical_500_response(request, *exc_info)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\django\views\debug.py", line 94, in technical_500_response
html = reporter.get_traceback_html()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\django\views\debug.py", line 332, in get_traceback_html
t = DEBUG_ENGINE.from_string(fh.read())
UnicodeDecodeError: 'gbk' codec can't decode byte 0xdf in position 17228: illegal multibyte sequence
[14/Dec/2017 13:42:46] "GET / HTTP/1.1" 500 59
这是terminal里显示的


