sqlite3.OperationalError: unable to open database file

Check your settings.py DATABASE_NAME, ensure that:
– The path is absolute path, don’t use ~ $HOME etc, and
– The path exists, and
– The database file exists (if it doesn’t, use manage.py syncdb), and
– Webserver has read and write access to the file, and
– Webserver has read and write access to the directory containing the file.

Anything else?

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s