1 | | I have created a new virtualenv with **Python 3.8** and the client can access the admin portal but the server log shows an exception: |
2 | | |
3 | | {{{ |
4 | | [15/Dec/2019 13:20:54] "GET /admin/ HTTP/1.1" 302 0 |
5 | | [15/Dec/2019 13:20:54] "GET /admin/login/?next=/admin/ HTTP/1.1" 200 1913 |
6 | | ---------------------------------------- |
7 | | Exception happened during processing of request from ('127.0.0.1', 52778) |
8 | | Traceback (most recent call last): |
9 | | File "/Users/aotero/.pyenv/versions/3.8.0/lib/python3.8/socketserver.py", line 650, in process_request_thread |
10 | | self.finish_request(request, client_address) |
11 | | File "/Users/aotero/.pyenv/versions/3.8.0/lib/python3.8/socketserver.py", line 360, in finish_request |
12 | | self.RequestHandlerClass(request, client_address, self) |
13 | | File "/Users/aotero/.pyenv/versions/3.8.0/lib/python3.8/socketserver.py", line 720, in __init__ |
14 | | self.handle() |
15 | | File "/Users/aotero/.pyenv/versions/3.8.0/envs/admin_login_issue-3.8.0/lib/python3.8/site-packages/django/core/servers/basehttp.py", line 174, in handle |
16 | | self.handle_one_request() |
17 | | File "/Users/aotero/.pyenv/versions/3.8.0/envs/admin_login_issue-3.8.0/lib/python3.8/site-packages/django/core/servers/basehttp.py", line 182, in handle_one_request |
18 | | self.raw_requestline = self.rfile.readline(65537) |
19 | | File "/Users/aotero/.pyenv/versions/3.8.0/lib/python3.8/socket.py", line 669, in readinto |
20 | | return self._sock.recv_into(b) |
21 | | ConnectionResetError: [Errno 54] Connection reset by peer |
22 | | ---------------------------------------- |
23 | | [15/Dec/2019 13:20:58] "POST /admin/login/?next=/admin/ HTTP/1.1" 302 0 |
24 | | [15/Dec/2019 13:20:58] "GET /admin/ HTTP/1.1" 200 3043 |
25 | | [15/Dec/2019 13:20:58] "GET /static/admin/css/dashboard.css HTTP/1.1" 304 0 |
26 | | [15/Dec/2019 13:20:58] "GET /static/admin/img/icon-addlink.svg HTTP/1.1" 304 0 |
27 | | [15/Dec/2019 13:20:58] "GET /static/admin/img/icon-changelink.svg HTTP/1.1" 304 0 |
28 | | }}} |
| 1 | I have created a new virtualenv with **Python 3.8** and I can login to the admin page without any problem |