Django is “unable to open database file”

后端 未结 7 1257
栀梦
栀梦 2020-12-15 02:58

after running \"python manage.py syncdb\" i gett an error saying \"unable to open database file\".

here is the important part from my settings.py:

DA         


        
7条回答
  •  南笙
    南笙 (楼主)
    2020-12-15 03:27

    To change the permission of parent directory, you can use below set of commands:

    check apache process for apache v2:

    ps -ef | grep apache | grep -v grep
    

    the user/group is www-data

    chgrp www-data /path/to/mydir
    chmod g+w /path/to/mydir
    

    Ref: https://askubuntu.com/questions/58725/how-do-we-know-that-a-directory-is-apache-writable

提交回复
热议问题