newpanjing/simplepro

登录 Django 后台后,进入任何一个页面都报错:KeyError: 'HOME',无法激活 pro

Closed this issue · 0 comments

windows 10:

Python 3.6.3 (v3.6.3:2c5fed8, Oct 3 2017, 18:11:49) [MSC v.1900 64 bit (AMD64)] on win32
django 2.2.12
django-simpleui 2020.7
simplepro 1.5

日志:

System check identified no issues (0 silenced). August 10, 2020 - 09:25:33 Django version 2.2.12, using settings 'joyoo.settings' Starting development server at http://192.168.91.116:8000/ Quit the server with CTRL-BREAK. [10/Aug/2020 09:25:43] "GET / HTTP/1.1" 200 90885 [10/Aug/2020 09:25:50] "POST /visit_web/ HTTP/1.1" 200 62 [10/Aug/2020 09:25:52] "POST /get_saying/ HTTP/1.1" 200 941 [10/Aug/2020 09:33:16] "GET /jadmin/ HTTP/1.1" 200 43161 [10/Aug/2020 09:33:16] "GET /static/admin/simplepro/nprogress/nprogress.css HTTP/1.1" 304 0 [10/Aug/2020 09:33:16] "GET /static/admin/simpleui-x/css/index.css?_=3.2 HTTP/1.1" 304 0 [10/Aug/2020 09:33:16] "GET /static/admin/simplepro/images/logo.png HTTP/1.1" 304 0 [10/Aug/2020 09:33:16] "GET /static/admin/simpleui-x/waves/waves.min.css?_=2.1 HTTP/1.1" 304 0 [10/Aug/2020 09:33:16] "GET /static/admin/simplepro/css/index.css HTTP/1.1" 304 0 [10/Aug/2020 09:33:16] "GET /static/admin/simplepro/css/home.css HTTP/1.1" 304 0 [10/Aug/2020 09:33:17] "GET /static/admin/simplepro/echarts/echarts.min.js HTTP/1.1" 304 0 [10/Aug/2020 09:33:17] "GET /static/admin/simpleui-x/automatic/dicts.js?_=2020.7 HTTP/1.1" 304 0 [10/Aug/2020 09:33:17] "GET /static/admin/simpleui-x/locale/en-us.js?_=2020.7 HTTP/1.1" 304 0 [10/Aug/2020 09:33:17] "GET /static/admin/simpleui-x/locale/zh-hans.js?_=2020.7 HTTP/1.1" 304 0 [10/Aug/2020 09:33:17] "GET /static/admin/simpleui-x/automatic/segment.js?_=2020.7 HTTP/1.1" 304 0 [10/Aug/2020 09:33:17] "GET /static/admin/simpleui-x/js/cookie.js?_=2020.7 HTTP/1.1" 304 0 [10/Aug/2020 09:33:17] "GET /static/admin/simpleui-x/theme/theme.js?_=2020.7 HTTP/1.1" 304 0 [10/Aug/2020 09:33:17] "GET /static/admin/simpleui-x/waves/waves.min.js?_=2020.7 HTTP/1.1" 304 0 [10/Aug/2020 09:33:17] "GET /static/admin/simplepro/js/chart.js HTTP/1.1" 304 0 [10/Aug/2020 09:33:17] "GET /static/admin/simplepro/js/timeline.js HTTP/1.1" 304 0 [10/Aug/2020 09:33:17] "GET /static/admin/simplepro/js/index.js HTTP/1.1" 304 0 [10/Aug/2020 09:33:17] "GET /static/admin/simplepro/js/search.js HTTP/1.1" 304 0 [10/Aug/2020 09:33:17] "GET /static/admin/simpleui-x/js/index.js?_=2020.7 HTTP/1.1" 304 0 [10/Aug/2020 09:33:17] "GET /static/admin/simplepro/nprogress/nprogress.js HTTP/1.1" 304 0 [10/Aug/2020 09:33:18] "GET /static/admin/simpleui-x/theme/x-green.css HTTP/1.1" 304 0 [10/Aug/2020 09:33:24] "GET /static/admin/simplepro/css/index.css.map HTTP/1.1" 200 703 [10/Aug/2020 09:33:25] "GET /static/admin/simplepro/css/home.css.map HTTP/1.1" 200 1217 [10/Aug/2020 09:33:25] "GET /static/admin/simpleui-x/theme/x-green.css.map HTTP/1.1" 200 2043 [10/Aug/2020 09:33:25] "GET /static/admin/simpleui-x/waves/waves.min.js.map HTTP/1.1" 200 9739 [10/Aug/2020 09:33:25] "GET /static/admin/simpleui-x/css/index.css.map HTTP/1.1" 200 3279 [10/Aug/2020 09:33:32] "GET / HTTP/1.1" 200 90908 Internal Server Error: /jadmin/blog/article/ Traceback (most recent call last): File "E:\py_virtualenv\joyoo\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "E:\py_virtualenv\joyoo\lib\site-packages\django\core\handlers\base.py", line 106, in _get_response response = middleware_method(request, callback, callback_args, callback_kwargs) File "<string>", line 29, in process_view File "<string>", line 33, in process_view File "<string>", line 114, in pre_process File "<string>", line 626, in process_active File "<string>", line 12, in get_device_id File "E:\py_virtualenv\joyoo\lib\os.py", line 669, in __getitem__ raise KeyError(key) from None KeyError: 'HOME' django.request: 2020-08-10 09:33:38,116 E:\py_virtualenv\joyoo\lib\site-packages\django\utils\log.py [line:228] ERROR Internal Server Error: /jadmin/blog/article/ Traceback (most recent call last): File "E:\py_virtualenv\joyoo\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "E:\py_virtualenv\joyoo\lib\site-packages\django\core\handlers\base.py", line 106, in _get_response response = middleware_method(request, callback, callback_args, callback_kwargs) File "<string>", line 29, in process_view File "<string>", line 33, in process_view File "<string>", line 114, in pre_process File "<string>", line 626, in process_active File "<string>", line 12, in get_device_id File "E:\py_virtualenv\joyoo\lib\os.py", line 669, in __getitem__ raise KeyError(key) from None KeyError: 'HOME