我已经在virtualenv上安装了Django,当我想启动应用时,我有以下错误:
(myprojectenv) pi@raspberrypi:~/myproject $ ls
db.sqlite3 manage.py myproject myprojectenv static
(myprojectenv) pi@raspberrypi:~/myproject $ python manage.py startapp blog
CommandError: [Errno 13] Permission denied: '/home/pi/myproject/blog'
在命令之前尝试输入“sudo”时,我得到了这样的错误:
(myprojectenv) pi@raspberrypi:~/myproject $ sudo python manage.py startapp blog
File "manage.py", line 14
) from exc
^
SyntaxError: invalid syntax
如何解决这个问题?