Django框架startapp

时间:2018-04-16 09:02:50

标签: python django

后面是教程:https://www.digitalocean.com/community/tutorials/how-to-serve-django-applications-with-apache-and-mod_wsgi-on-debian-8

我已经在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

如何解决这个问题?

0 个答案:

没有答案