本文介绍了-bash:./manage.py:权限被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
运行后:
$ ./manage.py migrate
我收到以下错误:
After running:$ ./manage.py migrate
I am getting the following error:
-bash: ./manage.py: Permission denied
尝试在DB中进行更改后运行迁移。
任何建议将非常感激。
Trying to run a migration after making a change in the DB.Any advice would be really appreciated.
推荐答案
您需要使manage.py可执行文件来弹出。执行 chmod + x manage.py
以使其可以显示。或者,您可以执行 python manage.py< cmd>
。
You need to make manage.py executable to excecute it. Do chmod +x manage.py
to make it excecutable. Alternately you can do python manage.py <cmd>
instead.
这篇关于-bash:./manage.py:权限被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!