Thursday, March 12, 2009

Django & Sqlite3 can't open the database file problem.

Everything is right in the code. It runs normal in the django http server (manage.py runserver). But it display the following message when you using apache + mod_python in linux server.
"OperationalError: unable to open database file "

One the reasion is that the access right of the apache or mod_python have no right to wirte the database file or project folder. Try to modify the access of project folder and database file.

some ref:
http://mail.python.org/pipermail/python-list/2004-February/248859.html

No comments: