Django is “unable to open database file”

后端 未结 7 1233
栀梦
栀梦 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:42

    Well, I answered it on this question. http://goo.gl/KAuXz

    I faced exactly same issue. Here is my setting which worked.

    'ENGINE': 'django.db.backends.sqlite3', 
    'NAME': '/home/neo/django/db/data.sqlite3'
    

    Other setting in case of sqlite3 will be same/default.

提交回复
热议问题