django项目中user登录时产生“Error 10061 connecting to 127.0.0.1:6379. 由于目标计算机积极拒绝,无法连接”错误,各位怎么解决的啊,急!
```python
ConnectionError at /user/login/
Error 10061 connecting to 127.0.0.1:6379. 由于目标计算机积极拒绝,无法连接。.
Request Method: POST
Request URL: http://127.0.0.1:8000/user/login/
Django Version: 3.1
Exception Type: ConnectionError
Exception Value:
Error 10061 connecting to 127.0.0.1:6379. 由于目标计算机积极拒绝,无法连接。.
Exception Location: E:\pythonwork\djangoprojeces\dailyfresh\venv\lib\site-packages\redis\connection.py, line 615, in connect
Python Executable: E:\pythonwork\djangoprojeces\dailyfresh\venv\Scripts\python.exe
Python Version: 3.9.7
Python Path:
['E:\\pythonwork\\djangoprojeces\\dailyfresh',
'E:\\pythonwork\\djangoprojeces\\dailyfresh',
'E:\\pythonwork\\djangoprojeces\\dailyfresh',
'D:\\LenovoSoftstore\\pycharm\\PyCharm '
'2022.1\\plugins\\python\\helpers\\pycharm_display',
'E:\\pythonwork\\djangoprojeces\\dailyfresh\\venv\\Scripts\\python39.zip',
'D:\\LenovoSoftstore\\PY\\DLLs',
'D:\\LenovoSoftstore\\PY\\lib',
'D:\\LenovoSoftstore\\PY',
'E:\\pythonwork\\djangoprojeces\\dailyfresh\\venv',
'E:\\pythonwork\\djangoprojeces\\dailyfresh\\venv\\lib\\site-packages',
'D:\\LenovoSoftstore\\pycharm\\PyCharm '
'2022.1\\plugins\\python\\helpers\\pycharm_matplotlib_backend']
Server time: Sat, 04 Jun 2022 18:11:31 +0800