参考官方教程,https://doc.mrdoc.pro/doc/3068/
如下命令及执行结果(python3 manage.py changepassword 命令也一样的结果):
root@hi3798mv300:/opt/note/MrDoc# python3.8 manage.py changepassword
Traceback (most recent call last):
File "manage.py", line 8, in <module>
from django.core.management import execute_from_command_line
ModuleNotFoundError: No module named 'django'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "manage.py", line 10, in <module>
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?
请大佬看看怎么适配HiNAS上的执行命令?