[Django]-Django database connection error: "sqlite3.OperationalError: unable to open database file"

4👍

You need to give the path to the database file, look at your database settings:

'NAME': '/home/vmplanet/code/blog', # Or path to database file if using sqlite3.

…which is presumably the project directory. Try /home/vmplanet/code/blog/blog.db.

Leave a comment