我有django + guicorn + nginx项目(this tutorial)
我删除虚拟环境并获得一个新环境,一切正常但是,当我尝试使用命令时:
source projectenv/bin/activate
folder1/project/manage.py collectstatic
我收到了一个错误:
-bash: folder1/folder/manage.py: Permission denied
即使我尝试:
folder1/folder/manage.py runserver 0.0.0.0:8000
-bash: folder1/folder/manage.py: Permission denied
我该怎么做才能使这个虚拟环境正常工作?
答案 0 :(得分:-1)
python3 folder1/project/manage.py collectstatic
正常工作
感谢评论falsetru