Sqlite3, OperationalError: unable to open database file

前端 未结 19 1638
再見小時候
再見小時候 2020-11-27 18:58

Question: Why can\'t I open the database?


Info: I\'m working on a project using sqlite3 database. I wrote a test program that runs and passes it t

19条回答
  •  悲哀的现实
    2020-11-27 19:32

    My reason was very foolish. I had dropped the manage.py onto the terminal so it was running using the full path. And I had changed the name of the folder of the project. So now, the program was unable to find the file with the previous data and hence the error.

    Make sure you restart the software in such cases.

提交回复
热议问题