inspectdb -bash: /var/www/myproject/myproject/models.py: 权限被拒绝

inspectdb -bash: /var/www/myproject/myproject/models.py: Permission denied

      sudo python2.7 var/www/myproject/manage.py inspectdb > /var/www/myproject/myproject/models.py

-bash: /var/www/myproject/myproject/models.py: Permission denied

在 ec2 上亚马逊网络服务无法检查数据库

可能 modles.py 没有 root 权限。您可以使用 chmod 777 models.py 更改其权限。