通过 1pannel 部署的 jumpserver/jms_all:v4.8.1 忘记了管理员密码,登录容器后修改密码报错,请问如何解决
提示缺少 django ,是直接安装么 会不会破坏 app
root@506f9cbe270f:/opt/jumpserver/apps# python manage.py changepassword admin
Traceback (most recent call last):
File “/opt/jumpserver/apps/manage.py”, line 13, in
from django.core.management import execute_from_command_line
ModuleNotFoundError: No module named ‘django’
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/opt/jumpserver/apps/manage.py”, line 19, in
import django
ModuleNotFoundError: No module named ‘django’
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/opt/jumpserver/apps/manage.py”, line 21, in
raise ImportError(
ImportError: Couldn’t import Django. Are you sure it’s installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment?